Skip to content

Commit

Permalink
chore: update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gparlakov committed Jan 20, 2025
1 parent c129902 commit 76f1ef8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ Watch releases of this repository to be notified about future updates:
## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-87-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

Please check [contributors guide](https://github.com/podkrepi-bg/frontend/blob/master/CONTRIBUTING.md) for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ function camAppForEdit(): CampaignApplicationExisting {
acceptTermsAndConditions: true,
transparencyTermsAccepted: true,
personalInformationProcessingAccepted: true,
documents: [],
documents: [{ filename: 'test.me', id: 'test.me' }],
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe('Campaign application giver', () => {

// assert
const t = await textLocalized().campaign.bg()
await expect(page.getByRole('heading')).toHaveText(t.steps.organizer.title)
await expect(page.getByRole('heading', { name: t.steps.organizer.title })).toBeVisible()

await page.getByRole('checkbox').first().click()
await page.getByRole('checkbox').nth(1).click()
Expand All @@ -22,7 +22,7 @@ test.describe('Campaign application giver', () => {
await page.getByRole('button', { name: t.cta.next }).click()

// assert
await expect(page.getByRole('heading')).toHaveText(t.steps.application.title)
await expect(page.getByRole('heading', { name: t.steps.application.title })).toBeVisible()
})

test('should see the second step -application - of create campaign application wizard and after filling in the beneficiary, relations, title, type and funds go to step 3', async ({
Expand Down Expand Up @@ -55,7 +55,7 @@ test.describe('Campaign application giver', () => {
await page.getByRole('button', { name: t.cta.next }).click()

// assert
await expect(page.getByRole('heading')).toHaveText(t.steps.details.title)
await expect(page.getByRole('heading', { name: t.steps.details.title })).toBeVisible()
})

test('should see the third step - details - of create campaign application wizard and after filling the title, description, history and 2 files be able to create a new campaign application', async ({
Expand Down

0 comments on commit 76f1ef8

Please sign in to comment.