-
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 #38 from co-cddo/almost-full-journey
Full happy path 1
- Loading branch information
Showing
13 changed files
with
410 additions
and
46 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 |
---|---|---|
|
@@ -38,6 +38,63 @@ describe('Happy passes', () => { | |
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', 'Upload evidence of written permission') | ||
cy.get('input[type=file]').selectFile('request_a_govuk_domain/static/images/govuk-crest.png') | ||
cy.get('.govuk-button').click() | ||
|
||
cy.get('h1').should('include.text', 'Upload evidence of written permission') | ||
cy.get('a').should('include.text', 'govuk-crest.png') | ||
cy.get('.govuk-button').click() | ||
|
||
// Domain | ||
cy.get('h1').should('include.text', 'What .gov.uk domain name do you want?') | ||
cy.get('#id_domain_name').type('foobar') | ||
cy.get('.govuk-button').click() | ||
|
||
// Minister | ||
cy.get('h1').should('include.text', 'Has a central government minister requested the domain name?') | ||
cy.get('#id_minister_radios_1').click() | ||
cy.get('.govuk-button').click() | ||
|
||
// Minister upload | ||
cy.get('h1').should('include.text', 'Upload evidence of the minister\'s request') | ||
cy.get('input[type=file]').selectFile('request_a_govuk_domain/static/images/govuk-crest.png') | ||
cy.get('.govuk-button').click() | ||
|
||
// Minister upload confirmation | ||
cy.get('h1').should('include.text', 'Upload evidence of the minister\'s request') | ||
cy.get('a').should('include.text', 'govuk-crest.png') | ||
cy.get('.govuk-button').click() | ||
|
||
// Applicant details | ||
cy.get('h1').should('include.text', 'Applicant details') | ||
cy.get('#id_applicant_name').type('Joe Bloggs') | ||
cy.get('#id_applicant_phone').type('01225672736') | ||
cy.get('#id_applicant_email').type('[email protected]') | ||
cy.get('.govuk-button').click() | ||
|
||
// Registrant details | ||
cy.get('h1').should('include.text', 'Registrant details') | ||
cy.get('#id_registrant_full_name').type('Robert Smith') | ||
cy.get('#id_registrant_phone').type('01225672345') | ||
cy.get('#id_registrant_email_address').type('[email protected]') | ||
cy.get('.govuk-button').click() | ||
|
||
// Registry details | ||
cy.get('h1').should('include.text', 'Registrant details for publishing to the registry') | ||
cy.get('#id_registrant_role').type('Robert Smith') | ||
cy.get('#id_registrant_contact_phone').type('01225672345') | ||
cy.get('#id_registrant_contact_email').type('[email protected]') | ||
cy.get('.govuk-button').click() | ||
|
||
// Confirm | ||
cy.get('h1').should('include.text', 'Check your answers') | ||
cy.get('.govuk-button').click() | ||
|
||
// Success | ||
cy.get('h1').should('include.text', 'Application submitted') | ||
}) | ||
}) |
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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
request_a_govuk_domain/request/templates/minister_upload.html
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,27 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_tags crispy_forms_gds %} | ||
{% load govuk_frontend_django %} | ||
|
||
{% block title %}Minister upload{% endblock %} | ||
|
||
{% block main %} | ||
|
||
{% block beforeContent %} | ||
{% url "minister" as back_url %} | ||
{% back_link back_url %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% error_summary form %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"> | ||
Upload evidence of the minister's request | ||
</h1> | ||
|
||
{% crispy form %} | ||
|
||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
47 changes: 47 additions & 0 deletions
47
request_a_govuk_domain/request/templates/minister_upload_confirm.html
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,47 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_tags crispy_forms_gds %} | ||
{% load govuk_frontend_django %} | ||
|
||
{% block title %}Minister upload confirm{% endblock %} | ||
|
||
{% block main %} | ||
|
||
{% block beforeContent %} | ||
{% url "minister_upload" as back_url %} | ||
{% back_link back_url %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"> | ||
Upload evidence of the minister's request | ||
</h2> | ||
<div class="govuk-hint"> | ||
Support file is .jpeg or .png and the maximum size is 10MB. | ||
</div> | ||
|
||
<dl class="govuk-summary-list govuk-summary-list--long-key"> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<a class="govuk-link" href="/media/{{ file }}" target="_blank">{{ file }}</a> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<strong class="govuk-tag govuk-tag--green"> | ||
uploaded | ||
</strong> | ||
</dd> | ||
<dd class="govuk-summary-list__actions"> | ||
<a class="govuk-link" href="/minister_upload"> | ||
Remove<span class="govuk-visually-hidden"> {{ file }}</span> | ||
</a> | ||
</dd> | ||
</div> | ||
</dl> | ||
<a class="govuk-button" href="{% url "applicant_details" %}"> | ||
Continue | ||
</a> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block main %} | ||
<h1 class="govuk-heading-l">Thanks for submitting!</h1> | ||
<h1 class="govuk-heading-l">Application submitted</h1> | ||
{% endblock %} |
Oops, something went wrong.