From 8a503b394d92a68384bd59d66f17f0034a744551 Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Mon, 21 Oct 2024 07:53:09 -0400 Subject: [PATCH] Fix the e2e test (regex error) --- tests/studio/specs/e2e.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/studio/specs/e2e.spec.ts b/tests/studio/specs/e2e.spec.ts index 067be77..4072880 100644 --- a/tests/studio/specs/e2e.spec.ts +++ b/tests/studio/specs/e2e.spec.ts @@ -25,7 +25,7 @@ test("End to End Test (Studio)", async ({ page }) => { const now: string = `${Date.now()}`; const groupId: string = "e2e-test-group"; - const draftId: string = `e2e-test-artifact-${now}`; + const draftId: string = `e2e-test-draft-${now}`; const version: string = "1.0"; const name: string = `Test API`; const description: string = "A new, fantastic, OpenAPI API design."; @@ -46,7 +46,7 @@ test("End to End Test (Studio)", async ({ page }) => { await page.locator("#next-wizard-page").click(); // Make sure we redirected to the draft details page. - const expectedPageUrlPattern: RegExp = /.+\/drafts\/e2e-test-group\/e2e-test-api-[0-9]+\/1.0/; + const expectedPageUrlPattern: RegExp = /.+\/drafts\/e2e-test-group\/e2e-test-draft-[0-9]+\/1.0/; await expect(page).toHaveURL(expectedPageUrlPattern); // Click the Delete Draft button