The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e/create-direct.spec.ts

27 lines
831 B

import { Users } from './fixtures/userStates';
import { HomeChannel } from './page-objects';
import { test, expect } from './utils/test';
test.use({ storageState: Users.admin.state });
test.describe.serial('channel-direct-message', () => {
let poHomeChannel: HomeChannel;
test.beforeEach(async ({ page }) => {
poHomeChannel = new HomeChannel(page);
await page.goto('/home');
});
test('expect create a direct room', async ({ page }) => {
await poHomeChannel.sidenav.openNewByLabel('Direct Messages');
await poHomeChannel.sidenav.inputDirectUsername.click();
await page.keyboard.type('rocket.cat');
await page.waitForTimeout(200);
await page.keyboard.press('Enter');
await poHomeChannel.sidenav.btnCreate.click();
await expect(page).toHaveURL('direct/rocket.catrocketchat.internal.admin.test');
});
});