Skip to content

Commit

Permalink
fix: test only title of the list as no camp-applications yet
Browse files Browse the repository at this point in the history
  • Loading branch information
gparlakov committed Sep 29, 2024
1 parent 0b29465 commit a05e37d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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-83-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 @@ -5,6 +5,6 @@ test.describe('Create campaign application', () => {
await page.goto(`${baseURL}/admin/campaign-applications`)

await expect(page.getByRole('heading')).toHaveText('Кандидат Кампании')
await expect(page.getByRole('row')).toHaveCount(6); // title plus 5 rows
// await expect(page.getByRole('row')).toHaveCount(1); // just title b/c no campaign applications yet
})
})
4 changes: 2 additions & 2 deletions e2e/utils/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test as base } from '@playwright/test'
import dotenv from 'dotenv'

dotenv.config({path: '../.env.local'})
dotenv.config({path: '../.env'})
dotenv.config({ path: '../.env.local' })
dotenv.config({ path: '../.env' })

const email = process.env.PODKREPI_EMAIL!
const password = process.env.PODKREPI_PASSWORD!
Expand Down

0 comments on commit a05e37d

Please sign in to comment.