Skip to content

Commit

Permalink
Add upload-artifact step with an intentional test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthewD committed Oct 8, 2023
1 parent 30cb0f1 commit 53f7df3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ jobs:
run: npm run test:unit

- name: Run end-to-end tests
id: e2eTests
run: npm run test:e2e

# Uploads the failure screenshots produced by Cypress
- uses: actions/upload-artifact@v3
if: always() && (steps.e2eTests.outcome == 'failure')
with:
name: my-artifact
path: cypress/screenshots/**/*.png


2 changes: 1 addition & 1 deletion cypress/e2e/map.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("Map", () => {
cy.get(".leaflet-control-layers-overlays label input").click();
});

cy.url().should("contain", "maps=");
cy.url().should("contain", "mops=");
});

it("unchecks a map layer and changes URL", () => {
Expand Down

0 comments on commit 53f7df3

Please sign in to comment.