-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] User auto complete breaks on enter key press (#27213)
- Loading branch information
1 parent
b3220b6
commit ed63a76
Showing
6 changed files
with
77 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { test, expect } from './utils/test'; | ||
import { HomeChannel } from './page-objects'; | ||
|
||
test.use({ storageState: 'admin-session.json' }); | ||
|
||
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'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters