Skip to content

Commit

Permalink
tests: Fix chat.js tests to accommodate new sendkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Aug 21, 2021
1 parent 3ed5f51 commit 7690dd6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tests/frontend/specs/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ describe('Chat messages and UI', function () {
const username = helper.chatTextParagraphs().children('b').text();
const time = helper.chatTextParagraphs().children('.time').text();

// TODO: The '\n' is an artifact of $.sendkeys('{enter}'). Figure out how to get rid of it
// without breaking the other tests that use $.sendkeys().
expect(helper.chatTextParagraphs().text()).to.be(`${username}${time} ${chatValue}\n`);
expect(helper.chatTextParagraphs().text()).to.be(`${username}${time} ${chatValue}`);

await helper.hideChat();
});
Expand All @@ -48,9 +46,7 @@ describe('Chat messages and UI', function () {
const username = chat.children('b').text();
const time = chat.children('.time').text();

// TODO: Each '\n' is an artifact of $.sendkeys('{enter}'). Figure out how to get rid of them
// without breaking the other tests that use $.sendkeys().
expect(chat.text()).to.be(`${username}${time} \n${chatValue}\n`);
expect(chat.text()).to.be(`${username}${time} \n${chatValue}`);
});

it('makes chat stick to right side of the screen via settings, ' +
Expand Down

0 comments on commit 7690dd6

Please sign in to comment.