Skip to content

Commit

Permalink
Fix the e2e test (regex error)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Oct 21, 2024
1 parent e31e23c commit 8a503b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/studio/specs/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand All @@ -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
Expand Down

0 comments on commit 8a503b3

Please sign in to comment.