-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page.waitForLoadState ( Testing clerk sign up ) #141
Comments
Which version are you using? |
@antiwork/shortest": "^0.1.1" |
Could you try running your tests with |
Thanks for the sc. Seems like the initial page load is timing out. Here are couple things you can try to trouble shoot this issue:
import { shortest } from "@antiwork/shortest";
import { clerk, clerkSetup } from "@clerk/testing/playwright";
let frontendUrl = process.env.PLAYWRIGHT_TEST_BASE_URL ?? "http://localhost:3000";
shortest.beforeAll(async ({ page }) => {
await clerkSetup({
frontendApiUrl: frontendUrl,
});
await clerk.signIn({
page,
signInParams: {
strategy: "email_code",
identifier: "[email protected]",
},
});
await page.goto(frontendUrl + "/dashboard");
});
shortest("your test case")
import type { ShortestConfig } from "@antiwork/shortest";
export default {
headless: false,
baseUrl: "http://localhost:3000",
testDir: "app/tests",
anthropicKey: process.env.SHORTEST_ANTHROPIC_API_KEY,
} satisfies ShortestConfig; If none of the above works please let me know. Thank you! |
so sorry, it seems like all of them are resulting in a timeout, Must be a problem with my setup
|
Hhhm that's interesting. I will see if I can reproduce this issue on my end. In the meantime, do you have any other projects to try this one? Let's see if the issue is specific to your project or not. Thank you! |
Hi @tanushmahalka just following up on this. Were you able to run this on a different project? Please let me know if this issue persist across different project and we can open a bug. Unfortunately I have not been able to replicate this issue on my end yet but I will improve the waitForLoad mechanism. Please let me know if have any other questions. |
This issue got reported again in issue: #188. I will close this one and track the fix there. |
Reproduction
Its kinda stuck here:
and then I get an execution error
Test Execution Error: page.waitForLoadState: Timeout 30000ms exceeded.
The text was updated successfully, but these errors were encountered: