Skip to content

Commit

Permalink
E2E: fix version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
OhKai committed Dec 3, 2024
1 parent b8d838f commit 919c58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ms2/processes/process-modeler/process-modeler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ test('process modeler', async ({ processModelerPage, processListPage }) => {
await expect(page.getByRole('option', { name: 'Latest Version' })).toBeVisible();
await expect(page.getByRole('option', { name: 'Version 1' })).toBeVisible();
await page.getByRole('option', { name: 'Version 1' }).click();
const expectedURLWithVersion = new RegExp(`\\/processes\\/${definitionId}\\?version=\\d+$`);
const expectedURLWithVersion = new RegExp(
`\\/processes\\/${definitionId}\\?version=[a-zA-Z0-9-_]+$`,
);
await page.waitForURL(expectedURLWithVersion);
expect(expectedURLWithVersion.test(page.url())).toBeTruthy();

Expand Down

0 comments on commit 919c58d

Please sign in to comment.