Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pybuche committed Jun 13, 2023
1 parent 2bcc1bb commit a464499
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 33 deletions.
57 changes: 27 additions & 30 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,30 @@ jobs:
test_e2e:
name: E2E Test
runs-on: ubuntu-latest
# env:
# API_SECRET: test
# DATABASE_URL: postgresql://test_db_user:test_db_password@localhost:5432/metiers_numeriques?schema=public
# DOMAIN_URL: http://localhost:3000
# NODE_ENV: production
# REDIS_URL: redis://localhost:6379
# services:
# cache:
# image: redis:6
# ports:
# - 6379:6379
# options: >-
# --entrypoint redis-server
# db:
# image: postgres:14
# env:
# POSTGRES_DB: metiers_numeriques
# POSTGRES_USER: test_db_user
# POSTGRES_PASSWORD: test_db_password
# ports:
# - 5432:5432
# # Set health checks to wait until postgres has started
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
steps:
- name: Pass
run: echo "yeah!"
env:
API_SECRET: test
DATABASE_URL: postgresql://test_db_user:test_db_password@localhost:5432/metiers_numeriques?schema=public
DOMAIN_URL: http://localhost:3000
NODE_ENV: production
REDIS_URL: redis://localhost:6379
services:
cache:
image: redis:6
ports:
- 6379:6379
options: >-
--entrypoint redis-server
db:
image: postgres:14
env:
POSTGRES_DB: metiers_numeriques
POSTGRES_USER: test_db_user
POSTGRES_PASSWORD: test_db_password
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
4 changes: 1 addition & 3 deletions e2e/101-sanity-check.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ test.describe('Sanity Check', () => {
test('Home', async ({ page }) => {
await page.goto('http://localhost:3000')

await expect(page.locator('h2 >> nth=0')).toHaveText(
'Tu es un talent du numérique ?Mets tes compétencesau service des citoyens !',
)
await expect(page.locator('h2 >> nth=0')).toHaveText(' Le site des métiers du numérique évolue !')
})
})

0 comments on commit a464499

Please sign in to comment.