diff --git a/.github/workflows/releasetest_sep.yaml b/.github/workflows/releasetest_sep.yaml index d3b404e3..cd6f6dd1 100644 --- a/.github/workflows/releasetest_sep.yaml +++ b/.github/workflows/releasetest_sep.yaml @@ -22,7 +22,7 @@ jobs: # Run Playwright with PR-vs-Main comparison - name: GUI Test – Playwright only - uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.2.2 + uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.3.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} mode: test-only @@ -79,7 +79,7 @@ jobs: - run: npm install - name: GUI Test – Lint only - uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.2.2 + uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.3.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} mode: lint-only @@ -178,7 +178,7 @@ jobs: # Build dashboard, post comment, deploy Pages - id: review name: Dashboard / PR comment / Pages - uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.2.2 + uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.3.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} mode: dashboard-only diff --git a/playwright.config.js b/playwright.config.js index 112ac411..dad6ef97 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -25,4 +25,4 @@ module.exports = defineConfig({ } } } -}); +}); \ No newline at end of file diff --git a/tests/demo-todo-app.spec.ts b/tests/demo-todo-app.spec.ts index 4724ce95..36bc9b16 100644 --- a/tests/demo-todo-app.spec.ts +++ b/tests/demo-todo-app.spec.ts @@ -20,9 +20,17 @@ test.describe('New Todo', () => { await newTodo.fill(TODO_ITEMS[0]); await newTodo.press('Enter'); - // Make sure the list only has one todo item. + // Add visual difference + await page.evaluate(() => { + document.body.style.borderTop = '12px solid hotpink'; + }); + + // Take screenshot before failure + await page.screenshot({ path: 'test-results/before-failure.png' }); + + // DELIBERATE FAILURE: This will fail and should show in the metrics await expect(page.getByTestId('todo-title')).toHaveText([ - TODO_ITEMS[0] + 'WRONG EXPECTED TEXT - This will fail and generate screenshots!' ]); // Create 2nd todo.