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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
mtojek committed Apr 11, 2024
commit d15f10d1e8ae5d28f2729da21862ec4659fce9fc
6 changes: 2 additions & 4 deletions site/e2e/tests/deployment/general.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ test("experiments", async ({ page }) => {
await expect(experimentsLocator).toBeVisible();

// Firstly, check if all enabled experiments are listed
expect(experimentsLocator.locator("li", { hasText: e2eFakeExperiment1 }))
.toBeVisible;
expect(experimentsLocator.locator("li", { hasText: e2eFakeExperiment2 }))
.toBeVisible;
expect(experimentsLocator.locator(`li.option-array-item-${e2eFakeExperiment1}.option-enabled`)).toBeVisible;
expect(experimentsLocator.locator(`li.option-array-item-${e2eFakeExperiment2}.option-enabled`)).toBeVisible;

// Secondly, check if available experiments are listed
for (const experiment of availableExperiments.safe) {
Expand Down