Skip to content

Commit

Permalink
cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrig committed Jun 19, 2024
1 parent 4b869f0 commit 51162ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions clock/cypress/e2e/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ context("Basic navigation", () => {
cy.get(".away img").should("have.length", 1);
cy.get(".away img").should("have.attr", "src").should("include", "Fram");
cy.get(".halfstops-input").should("have.length", 4);
cy.tick(ONE_MINUTE * 33.5);
cy.tick(ONE_MINUTE * 35);
cy.get(".matchclock").should("have.text", "46:30");
cy.contains("Heim").click();
cy.contains("Pása").click();
cy.contains("Næsti hálfleikur").click();
cy.tick(ONE_MINUTE);
cy.get(".matchclock").should("have.text", "45:00");
cy.contains("Stillingar").click();
cy.get(".halfstops-input").should("have.length", 3);
cy.contains("Heim").click();
cy.contains("Byrja").click();
Expand All @@ -44,7 +51,6 @@ context("Basic navigation", () => {
cy.contains("Stillingar").click();
cy.get("#view-selector-match").click();
cy.get(".match-type-selector").select("handball");
cy.get(".viewport-select select").select("Inni stór");
cy.get("#view-selector-control").click();

cy.contains("Stop").should("have.length", 0);
Expand Down
1 change: 1 addition & 0 deletions clock/src/reducers/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const initialState = {
awayTimeouts: 0,
buzzer: false,
countdown: false,
showInjuryTime: true,
};

const actions = {
Expand Down

0 comments on commit 51162ac

Please sign in to comment.