Skip to content

Commit

Permalink
4222 - Fix docker compose and update jest-playwright.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sorja committed Jan 23, 2025
1 parent 4d1d2b2 commit 36c2764
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/test/e2e/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { expect, test } from '@playwright/test'

/**
* Example of failing test
*/

test.beforeAll(() => {
console.log('beforeall')
// init user
// init assessment
// init cycle
})

test('homepage has title and links to intro page', async ({ page }) => {
await page.goto('localhost:9000')
await page.goto('/')

await expect(page).toHaveTitle(/FRA platform/)
await expect(page).toHaveTitle(/FRA platform/) // Expect this to fail
// const headerTitle = await page.getByRole('heading', { level: 1, name: 'Global Forest Resources Assessment' })
const headerLogo = await page.getByRole('img', { name: 'FAO' })
await expect(headerLogo).toBeVisible()
Expand Down
4 changes: 3 additions & 1 deletion src/test/e2e/tests/smoke.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect, test } from '@playwright/test'

// test test
/**
* Example of successful test
*/

test('basic smoke test', async ({ page }) => {
await page.goto('/')
Expand Down

0 comments on commit 36c2764

Please sign in to comment.