-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from co-cddo/written-permission
Written Permission happy path cypress test
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
describe('Happy passes until written permission', () => { | ||
it('Performs full transaction till written permission', () => { | ||
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').should('exist') | ||
|
||
cy.get('select.govuk-select').select('34SP.com') | ||
|
||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'What is your email address?') | ||
cy.get('.govuk-input').type('[email protected]') | ||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'Which of the following best describes your registrant\'s organisation?') | ||
cy.get('#id_registrant_type_2').click() | ||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'What is your registrant’s organisation name?') | ||
cy.get('.govuk-input').type('HMRC') | ||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'Does your registrant have written permission to apply for a .gov.uk domain name?') | ||
cy.get('#id_written_permission_1').click() | ||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'Confirm') // Should change later as more pages get added | ||
}) | ||
}) |