Tests: Fix backup test unread count

This commit is contained in:
ayumi-signal 2024-09-03 09:41:37 -07:00 committed by GitHub
parent 34ab08aeeb
commit c3d45264a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();