now switching to light theme is occasionally timing out

This commit is contained in:
Paul Fitzpatrick 2024-10-10 15:17:19 -04:00
parent 7153f817d9
commit 7cf2badf2b
No known key found for this signature in database
GPG Key ID: 07F16BF3214888F6

View File

@ -2781,11 +2781,11 @@ export function addSamplesForSuite(includeTutorial = false) {
}
export async function openAccountMenu() {
await driver.findWait('.test-dm-account', 1000).click();
await driver.findWait('.test-dm-account', 2000).click();
// Since the AccountWidget loads orgs and the user data asynchronously, the menu
// can expand itself causing the click to land on a wrong button.
await waitForServer();
await driver.findWait('.test-site-switcher-org', 1000);
await driver.findWait('.test-site-switcher-org', 2000);
await driver.sleep(250); // There's still some jitter (scroll-bar? other user accounts?)
}