Skip to content

Commit

Permalink
Merge pull request responsible-ai-collaborative#2151 from responsible…
Browse files Browse the repository at this point in the history
…-ai-collaborative/staging

Deploy to Production
  • Loading branch information
smcgregor authored Jul 11, 2023
2 parents 3492c95 + d3e557e commit aabe4b2
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions site/gatsby-site/cypress/e2e/integration/cite.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,25 +177,21 @@ describe('Cite pages', () => {

cy.waitForStableDOM();

cy.get('[data-cy="CSETv1"] [data-cy="AI System"]')
.last()
.find('input[type="radio"]')
.eq(0)
.should('be.checked');
cy.waitForStableDOM();

cy.get('[data-cy="CSETv1"] [data-cy="AI System"] [value="yes"]').first().check();

cy.waitForStableDOM();

cy.get('[data-cy="CSETv1"] [data-cy="AI System"] [value="yes"]').last().should('be.checked');

// Clicking unchecks the input for both fields
cy.get('[data-cy="CSETv1"] [data-cy="AI System"]')
.last()
.find('input[type="radio"]')
.eq(0)
.click();
cy.get('[data-cy="CSETv1"] [data-cy="AI System"] [value="yes"]').last().click();

cy.waitForStableDOM();

cy.get('[data-cy="CSETv1"] [data-cy="AI System"]')
cy.get('[data-cy="CSETv1"] [data-cy="AI System"] [value="yes"]')
.first()
.find('input[type="radio"]')
.eq(0)
.should('not.be.checked');
});

Expand Down

0 comments on commit aabe4b2

Please sign in to comment.