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 ba5ff7d commit 7268578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ jobs:

- name: Wait for container to become available
run: npx wait-on http://localhost:8080
timeout-minutes: 1
timeout-minutes: 2

- name: Print home page
run: curl http://localhost:8080

- name: Install npm dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4

- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30


- name: Stop services
run: docker-compose down
2 changes: 2 additions & 0 deletions e2e/ruxailabtest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const createTest = async (page, type) => {

test('has link page', async ({ page }) => {
await page.goto('/')
// Esperar a que cargue la página
await page.waitForLoadState('domcontentloaded')

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/RUXAILAB/)
Expand Down

0 comments on commit 7268578

Please sign in to comment.