Skip to content

Commit

Permalink
change tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Beltrán committed Jun 4, 2024
1 parent 099aae2 commit f701cc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
run: docker-compose up -d --build

- name: Wait for container to become available
run: npx wait-on http://localhost:8080
timeout-minutes: 2
run: |
npx wait-on http://localhost:8080
sleep 20
- name: Print home page
run: curl http://localhost:8080
Expand Down
9 changes: 6 additions & 3 deletions e2e/ruxailabtest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ const createTest = async (page, type) => {
test('has link page', async ({ page }) => {
await page.goto('/')

// Esperar a que un elemento específico esté presente en la página, indicando que el contenido dinámico se ha cargado
await page.waitForSelector('#app', { timeout: 10000 })
// Esperar un elemento específico
await page.waitForSelector('#app', { timeout: 20000 });

// Tomar una captura de pantalla para verificar el estado de la página
await page.screenshot({ path: 'screenshot.png' });

// Ahora verificar el título de la página
await expect(page).toHaveTitle(/RUXAILAB/, { timeout: 10000 })
await expect(page).toHaveTitle(/RUXAILAB/, { timeout: 20000 });
})

// test('sign and create heurisic test', async ({ page }) => {
Expand Down

0 comments on commit f701cc2

Please sign in to comment.