Skip to content

test(site): add e2e tests for experiments #12940

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

Merged
merged 20 commits into from
Apr 12, 2024
Merged

test(site): add e2e tests for experiments #12940

merged 20 commits into from
Apr 12, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Apr 11, 2024

Related: #12508

This PR adds e2e test to verify presented experiments in the UI.

Screenshot 2024-04-11 at 13 25 06

@mtojek mtojek self-assigned this Apr 11, 2024
@mtojek mtojek mentioned this pull request Apr 11, 2024
@mtojek mtojek force-pushed the 12508-experiments branch from f39d4aa to d15f10d Compare April 11, 2024 16:13
@@ -22,7 +29,7 @@ export default defineConfig({
testMatch: /.*\.spec\.ts/,
dependencies: ["testsSetup"],
use: { storageState },
timeout: 20_000,
timeout: 50_000,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise:

2024-04-12T07:59:03.3989632Z ==> Errors
2024-04-12T07:59:03.3990075Z �[31mTest timeout of 20000ms exceeded.�[39m
2024-04-12T07:59:03.3991129Z /home/runner/actions-runner/_work/coder/coder/site/e2e/helpers.ts:357:
2024-04-12T07:59:03.3992071Z    at helpers.ts:357
2024-04-12T07:59:03.3992271Z 
2024-04-12T07:59:03.3992405Z   355 |   });
2024-04-12T07:59:03.3992661Z   356 |
2024-04-12T07:59:03.3993276Z > 357 |   await page.getByTestId("agent-status-ready").waitFor({ state: "visible" });
2024-04-12T07:59:03.3993951Z       |                                                ^
2024-04-12T07:59:03.3994334Z   358 |   return cp;
2024-04-12T07:59:03.3994667Z   359 | };
2024-04-12T07:59:03.3994999Z   360 |
2024-04-12T07:59:03.3995440Z Error: locator.waitFor: Test timeout of 20000ms exceeded.
2024-04-12T07:59:03.3995871Z Call log:
2024-04-12T07:59:03.3996400Z   �[2m- waiting for getByTestId('agent-status-ready') to be visible�[22m

link

@mtojek mtojek requested a review from johnstcn April 12, 2024 08:25
@mtojek mtojek marked this pull request as ready for review April 12, 2024 08:25
@mtojek mtojek merged commit dcf1d3a into main Apr 12, 2024
23 of 25 checks passed
@mtojek mtojek deleted the 12508-experiments branch April 12, 2024 08:42
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants