mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Tests: Fix backup test unread count
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
@@ -211,13 +211,22 @@ describe('backups', function (this: Mocha.Suite) {
|
||||
|
||||
await snapshot('styled bubbles');
|
||||
|
||||
debug('Waiting for unread count');
|
||||
const unreadCount = await leftPane
|
||||
.locator(
|
||||
'.module-conversation-list__item--contact-or-conversation__unread-indicator.module-conversation-list__item--contact-or-conversation__unread-indicator--unread-messages'
|
||||
)
|
||||
.last();
|
||||
await unreadCount.waitFor();
|
||||
|
||||
debug('Going into the conversation');
|
||||
await contactElem.click();
|
||||
await window
|
||||
.locator('.ConversationView .module-message >> "respond 4"')
|
||||
.waitFor();
|
||||
|
||||
await snapshot('conversation');
|
||||
debug('Waiting for conversation to be marked read');
|
||||
await unreadCount.waitFor({ state: 'hidden' });
|
||||
|
||||
debug('Switching to stories nav tab');
|
||||
await window.getByTestId('NavTabsItem--Stories').click();
|
||||
|
||||
Reference in New Issue
Block a user