Skip to content

Commit

Permalink
fix:e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Oct 9, 2024
1 parent dde8321 commit 304ea5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/pages/web-pages/campaigns/campaigns.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class CampaignsPage extends HomePage {
async checkPageUrlByRegExp(urlRegExpAsString?: string, timeoutParam = 10000): Promise<void> {
await this.page.waitForTimeout(1000)
await expect(this.page, 'The URL is not correct!').toHaveURL(
new RegExp(urlRegExpAsString || `^(.*?)/campaigns/${SLUG_REGEX}`),
new RegExp(urlRegExpAsString || `^(.*?)/(en/)?campaigns/${SLUG_REGEX}`),
{
timeout: timeoutParam,
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/regression/campaign-flow/campaign-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.describe.serial(
})

test('Particular campaign can be opened through the Campaign page', async () => {
await headerPage.clickDonateHeaderNavButton(LanguagesEnum.EN)
await headerPage.changeLanguageToBe(LanguagesEnum.EN)
await campaignsPage.clickCampaignCardByIndex(0)

expect(
Expand Down

0 comments on commit 304ea5b

Please sign in to comment.