Skip to content

Commit e9db894

Browse files
committed
fix: e2e tests with rate limit handler
1 parent a0cd918 commit e9db894

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

e2e/pages/dashboard.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export class DashboardPage extends BasePage {
3939
async createProjectFromTemplate(projectName: string) {
4040
await this.goto("/");
4141
await this.click('[aria-label="Categories"]');
42-
await this.click('option:has-text("Samples")');
42+
await this.page
43+
.locator("option")
44+
.filter({ hasText: /Samples/ })
45+
.click();
4346
await this.page.locator("body").click({ position: { x: 0, y: 0 } });
4447
await this.page.getByRole("button", { name: "Create Project From Template: HTTP" }).scrollIntoViewIfNeeded();
4548
await this.click('button:has-text("Create Project From Template: HTTP")');

e2e/project/webhookSessionTriggered.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function setupProjectAndTriggerSession({ dashboardPage, page, request }: S
7474
await expect(page.getByText("Start From Template")).toBeVisible();
7575

7676
await page.getByLabel("Categories").click();
77-
await page.getByRole("option", { name: "Samples" }).click();
77+
await page.getByRole("option", { name: /Samples/ }).click();
7878
await page.locator("body").click({ position: { x: 0, y: 0 } });
7979
await page.getByRole("button", { name: "Create Project From Template: HTTP" }).scrollIntoViewIfNeeded();
8080
await page.getByRole("button", { name: "Create Project From Template: HTTP" }).click({ timeout: 2000 });

0 commit comments

Comments
 (0)