[MM-62094] E2E: Don't including loading screen or other windows in server map, remove check for loading screen finish (#3252)

This commit is contained in:
Devin Binnie
2025-02-04 00:45:22 -05:00
committed by GitHub
parent 900db3a85b
commit 1d912caa4e
17 changed files with 111 additions and 104 deletions

View File

@@ -14,12 +14,12 @@ export async function triggerTestNotification(firstServer) {
textAfterClick.should.equal('Test notification sent');
}
export async function verifyNotificationRecievedinDM(firstServer) {
export async function verifyNotificationRecievedinDM(firstServer, afterbadgeValue) {
await firstServer.click('#accountSettingsHeader > button.close');
const sidebarLink = await firstServer.locator('a.SidebarLink:has-text("system-bot")');
const badgeElement = await sidebarLink.locator('span.badge');
const badgeCount = await badgeElement.textContent();
badgeCount.should.equal('1');
parseInt(badgeCount, 10).should.equal(afterbadgeValue);
sidebarLink.click();
await asyncSleep(1000);