Skip to content

Commit edf2126

Browse files
nshirleytoufali
authored andcommitted
chore(functional-tests): Train 321 bandaid for flaky functional test
Because: - Some of the functional tests are flaky on train 321 during the disconnect sync step This Commit: - Adds a bandaid solution to get tests working again on stage until we can understand more what's happening with race conditions and timings
1 parent 12e10ed commit edf2126

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

packages/functional-tests/pages/settings/components/connectedService.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,24 @@ export class ConnectedService {
2323
}
2424

2525
async signout() {
26+
/**
27+
* This is _not_ an ideal solution. Something about this page and how we build these
28+
* page objects is behaving oddly. We can see the button click as the trace shows the
29+
* button change color, but it doesn't actually click. This is a workaround until we
30+
* can figure out the underlying issue.
31+
*
32+
* TODO: https://mozilla-hub.atlassian.net/browse/FXA-12517
33+
*/
34+
// eslint-disable-next-line playwright/no-wait-for-timeout
35+
await this.page.waitForTimeout(1500);
36+
await this.page
37+
.locator('[data-testid=nav-link-connected-services]')
38+
.click();
39+
await this.page.waitForURL(/#connected-services/);
2640
const button = this.element.locator(
2741
'[data-testid=connected-service-sign-out]'
2842
);
29-
return button.click();
43+
44+
await button.click();
3045
}
3146
}

0 commit comments

Comments
 (0)