Skip to content

Commit

Permalink
Make tests use a valid registrar name from the db
Browse files Browse the repository at this point in the history
  • Loading branch information
maxf committed Mar 13, 2024
1 parent 7fb93fb commit 6304312
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/bad-email.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Email format verification', () => {
cy.visit('http://0.0.0.0:8000/')

cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()

cy.get('h1').should('include.text', 'What is your email address?')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/exemption-happy-path.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Happy passes', () => {

cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').should('exist')
cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()


Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/happy-path-written-permission.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Happy passes until written permission', () => {
cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').should('exist')

cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')

cy.get('.govuk-button#id_submit').click()

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/happy-path.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Happy passes', () => {
cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').should('exist')

cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')

cy.get('.govuk-button#id_submit').click()

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/no-email.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Check if user entered an email', () => {
cy.visit('http://0.0.0.0:8000/')

cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()

// Don't type anything, just click on the button
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/no-org-type-selected.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Email format verification', () => {
cy.visit('http://0.0.0.0:8000/')

cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()

cy.get('h1').should('include.text', 'What is your email address?')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/no-registrar-selected.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Registrar no-select error', () => {
cy.get('#error-summary-title').should('include.text', 'There is a problem')
cy.get('#id_organisations_choice_1_error').should('include.text', 'This field is required')

cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()

cy.get('h1').should('include.text', 'What is your email address?')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/not-eligible.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Registrant not eligible', () => {
cy.visit('http://0.0.0.0:8000/')

cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')
cy.get('.govuk-button#id_submit').click()


Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/written-permission-yes.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Traverses to Written Permission page and selects Yes', () => {
cy.get('h1').should('include.text', 'Which .gov.uk Approved Registrar organisation are you from?')
cy.get('select.govuk-select').should('exist')

cy.get('select.govuk-select').select('34SP.com')
cy.get('select.govuk-select').select('Register This Ltd')

cy.get('.govuk-button#id_submit').click()

Expand Down

0 comments on commit 6304312

Please sign in to comment.