Skip to content

Commit

Permalink
Fix certifier selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 12, 2023
1 parent 7b27e2f commit 38165ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
CYPRESS_COVERAGE: true

- name: Run E2E test (English)
continue-on-error: true
env:
CYPRESS_RECORD_KEY: ${{secrets.CYPRESS_RECORD_KEY}}
CYPRESS_USER: 0
Expand All @@ -81,7 +80,7 @@ jobs:
headed: true
browser: chrome
record: true
parallel: false
parallel: true
group: "UI - Chrome"

- name: Archive backend logs
Expand Down
5 changes: 2 additions & 3 deletions packages/end-to-end/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,16 @@ Cypress.Commands.add('onboardCompleteQuestions', (role) => {
cy.url().should('include', '/certification/interested_in_organic');
cy.get('[data-cy=interestedInOrganic-continue]').should('exist').and('be.disabled');
cy.get('[data-cy=interestedInOrganic-select]').should('exist');
cy.get('[type="radio"]').first().check({ force: true });
cy.get('[type="radio"]').first().check();
cy.get('[data-cy=interestedInOrganic-continue]').should('not.be.disabled').click();

cy.url().should('include', '/certification/selection');
cy.get('[data-cy=certificationSelection-continue]').should('exist').and('be.disabled');
cy.get('[data-cy=certificationSelection-type]').should('exist');
cy.get('[type="radio"]').first().check({ force: true });
cy.get('[type="radio"]').first().check();
cy.get('[data-cy=certificationSelection-continue]').should('not.be.disabled').click();

// Select certifier
cy.url().should('include', '/certification/certifier/selection');
cy.get('[data-cy=certifierSelection-proceed]').should('exist').and('be.disabled');
cy.get('[data-cy=certifierSelection-item]').should('exist').eq(1).click();
let certifier;
Expand Down

0 comments on commit 38165ee

Please sign in to comment.