diff --git a/.github/workflows/releasetest_sep.yaml b/.github/workflows/releasetest_sep.yaml index f1586840..77f4795d 100644 --- a/.github/workflows/releasetest_sep.yaml +++ b/.github/workflows/releasetest_sep.yaml @@ -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 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 with: github-token: ${{ secrets.GITHUB_TOKEN }} mode: dashboard-only diff --git a/build.sh b/build.sh index e026c0b3..5fed6f59 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ git add . -git commit -m "optimize test" +git commit -m "v1.3.1 release test" git push diff --git a/scripts/visual-regression.js b/scripts/visual-regression.js index c39c0595..c597d557 100644 --- a/scripts/visual-regression.js +++ b/scripts/visual-regression.js @@ -1412,4 +1412,4 @@ if (require.main === module) { }); } -module.exports = { generateVisualReport }; +module.exports = { generateVisualReport }; \ No newline at end of file diff --git a/tests/demo-todo-app.spec.ts b/tests/demo-todo-app.spec.ts index 25fa1d61..7046e26e 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.