Skip to content

Commit

Permalink
Now actually opens the checkbox so that the element is created
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocoldwell authored and ob6160 committed Jul 13, 2023
1 parent ed1a773 commit 1e36d23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/desktop/add.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('Adding new toilets to the platform', () => {
cy.findByPlaceholderText('e.g. Sainsburys or street name').type(
toiletName
);
//If user clicks edit all hours, enables editing of all hours
//If user clicks edit all hours, enables editing of all toilet hours that are opens
cy.get('[name=has-opening-times]').click();
cy.get('[name=edit-all-day-hours]').click();
cy.get('[name=monday-is-open]').click();
Expand All @@ -169,6 +169,8 @@ describe('Adding new toilets to the platform', () => {
cy.get('[name=tuesday-opens]').should('have.value', '08:00');
cy.get('[name=tuesday-closes]').should('have.value', '16:00');

//If user now opens a previously closed days hours, they will have no value
cy.get('[name=wednesday-is-open]').click();
cy.get('[name=wednesday-opens]').should('have.value', '');
cy.get('[name=wednesday-closes]').contains('have.value', '');

Expand Down

0 comments on commit 1e36d23

Please sign in to comment.