mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
test(e2e): wait for bootstrap before interaction in agent testability
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
8c7935c6d1
commit
3de2e8bba0
1 file changed
+4
@@ -130,6 +130,10 @@ test.describe("Data-testid selectors are present", () => {
|
||||
}) => {
|
||||
await gotoApp();
|
||||
|
||||
// Wait for the app to finish bootstrapping (evidenced by the disclaimer modal being loaded)
|
||||
// This prevents a race condition where the login button click handler hasn't been attached yet.
|
||||
await page.locator("#disclaimerModal").waitFor({ state: "attached" });
|
||||
|
||||
// Open the login modal
|
||||
await page.locator('[data-testid="login-button"]').click();
|
||||
|
||||
|
||||
Reference in new issue
Block a user