Skip to content

Commit

Permalink
improve MessageComposerInput test selector
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Feb 23, 2023
1 parent 2962efa commit ac25921
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/message-actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test.describe.serial('message-actions', () => {
await poHomeChannel.content.sendMessage('this is a message for reply');
await poHomeChannel.content.openLastMessageMenu();
await page.locator('[data-qa-id="reply-in-thread"]').click();
await page.locator('.rcx-vertical-bar .js-input-message').type('this is a reply message');
await page.locator('.rcx-vertical-bar').locator('role=textbox[name="Message"]').type('this is a reply message');
await page.keyboard.press('Enter');

await expect(poHomeChannel.tabs.flexTabViewThreadMessage).toHaveText('this is a reply message');
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/team-management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test.describe.serial('teams-management', () => {
await poHomeTeam.content.openLastMessageMenu();

await page.locator('[data-qa-id="reply-in-thread"]').click();
await page.locator('.rcx-vertical-bar .js-input-message').type('any-reply-message');
await page.locator('.rcx-vertical-bar').locator('role=textbox[name="Message"]').type('any-reply-message');
await page.keyboard.press('Enter');

await expect(poHomeTeam.tabs.flexTabViewThreadMessage).toHaveText('any-reply-message');
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/thread-actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test.describe.serial('message-actions', () => {
});

test('expect delete the thread message and keep thread open if has more than one message', async ({ page }) => {
await page.locator('.rcx-vertical-bar .js-input-message').type('another reply message');
await page.locator('.rcx-vertical-bar').locator('role=textbox[name="Message"]').type('another reply message');
await page.keyboard.press('Enter');

await poHomeChannel.content.openLastThreadMessageMenu();
Expand Down

0 comments on commit ac25921

Please sign in to comment.