Skip to content

Commit ac5947f

Browse files
authored
Merge pull request #1119 from alphagov/2103-fix-helper-templates
2103: Fix names of helper template references
2 parents 7522900 + 36c4e69 commit ac5947f

3 files changed

Lines changed: 71 additions & 8 deletions

File tree

accessibility_monitoring_platform/apps/audits/templates/audits/statement_checks/equality_body_retest_statement_disproportionate.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<div class="govuk-width-container">
99
<div class="govuk-grid-row">
1010
<div class="govuk-grid-column-full">
11-
{% include 'common/case_banner.html' with case=retest.simplified_case %}
11+
{% include 'cases/helpers/case_banner.html' with case=retest.simplified_case %}
1212
</div>
1313
</div>
1414
{% include 'audits/helpers/retest_breadcrumbs.html' %}
1515
<main id="main-content" class="govuk-main-wrapper amp-padding-top-0">
1616
<div class="govuk-grid-row">
1717
<div class="govuk-grid-column-full">
18-
{% include "simplified/helpers/edit_header.html" with retest_header=True %}
18+
{% include "common/helpers/edit_header.html" with retest_header=True %}
1919
</div>
2020
</div>
2121
<div class="govuk-grid-row">

accessibility_monitoring_platform/apps/common/management/commands/init_int_test_data.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
from ....cases.models import BaseCase
3232
from ....comments.models import Comment
3333
from ....common.models import EmailTemplate
34+
from ....detailed.models import Contact as DetailedContact
3435
from ....detailed.models import DetailedCase, DetailedCaseHistory, DetailedEventHistory
36+
from ....detailed.models import ZendeskTicket as DetailedZendeskTicket
3537
from ....exports.models import Export, ExportCase
3638
from ....mobile.models import MobileCase
3739
from ....notifications.models import NotificationSetting, Task
3840
from ....reports.models import Report, ReportVisitsMetrics, ReportWrapper
3941
from ....s3_read_write.models import S3Report
42+
from ....simplified.models import CaseCompliance, CaseEvent, CaseStatus
43+
from ....simplified.models import Contact as SimplifiedContact
4044
from ....simplified.models import (
41-
CaseCompliance,
42-
CaseEvent,
43-
CaseStatus,
44-
Contact,
4545
EqualityBodyCorrespondence,
4646
SimplifiedCase,
4747
SimplifiedEventHistory,
@@ -86,6 +86,7 @@ def handle(self, *args, **options): # pylint: disable=unused-argument
8686
delete_from_models(
8787
[
8888
Task,
89+
DetailedZendeskTicket,
8990
EmailTemplate,
9091
ExportCase,
9192
Export,
@@ -131,8 +132,12 @@ def handle(self, *args, **options): # pylint: disable=unused-argument
131132
Report,
132133
]
133134
)
134-
delete_from_models([DetailedEventHistory, DetailedCaseHistory, DetailedCase])
135-
delete_from_models([SimplifiedEventHistory, Contact, CaseEvent, SimplifiedCase])
135+
delete_from_models(
136+
[DetailedEventHistory, DetailedCaseHistory, DetailedContact, DetailedCase]
137+
)
138+
delete_from_models(
139+
[SimplifiedEventHistory, SimplifiedContact, CaseEvent, SimplifiedCase]
140+
)
136141
delete_from_models([MobileCase])
137142
delete_from_models([BaseCase])
138143
delete_from_models([ChangeToPlatform, IssueReport, Platform, Sector]) # Common

stack_tests/integration_tests/cypress/e2e/new_simplified_case_test_report.cy.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,63 @@ describe('Create simplified case, tests and report', () => {
216216

217217
cy.title().should('eq', `${newOrganisationName} | Closing the case`)
218218
cy.contains('Save and continue').click()
219+
220+
cy.contains('Post case').click()
221+
cy.contains('Retest overview').click()
222+
223+
cy.title().should('eq', `${newOrganisationName} | Retest overview`)
224+
cy.contains('New retest').click()
225+
226+
cy.title().should('eq', 'Retest #1 | Retest metadata')
227+
cy.contains('Save and continue').click()
228+
229+
cy.title().should('eq', `${newOrganisationName} | Retest #1 | Home`)
230+
cy.contains('Save and next page').click()
231+
232+
cy.title().should('eq', 'Retest #1 | Comparison')
233+
cy.contains('Save and continue').click()
234+
235+
cy.title().should('eq', 'Retest #1 | Compliance decision')
236+
cy.contains('Save and continue').click()
237+
238+
cy.title().should('eq', `${newOrganisationName} | Statement links`)
239+
cy.contains('Save and continue').click()
240+
241+
cy.title().should('eq', `${newOrganisationName} | Statement overview`)
242+
cy.get('[name="form-0-check_result_state"]').check('yes')
243+
cy.get('[name="form-1-check_result_state"]').check('yes')
244+
cy.contains('Save and continue').click()
245+
246+
cy.title().should('eq', `${newOrganisationName} | Statement information`)
247+
cy.contains('Save and continue').click()
248+
249+
cy.title().should('eq', `${newOrganisationName} | Compliance status`)
250+
cy.contains('Save and continue').click()
251+
252+
cy.title().should('eq', `${newOrganisationName} | Non-accessible content`)
253+
cy.contains('Save and continue').click()
254+
255+
cy.title().should('eq', `${newOrganisationName} | Statement preparation`)
256+
cy.contains('Save and continue').click()
257+
258+
cy.title().should('eq', `${newOrganisationName} | Feedback and enforcement procedure`)
259+
cy.contains('Save and continue').click()
260+
261+
cy.title().should('eq', `${newOrganisationName} | Disproportionate burden claim`)
262+
cy.contains('Save and continue').click()
263+
264+
cy.title().should('eq', `${newOrganisationName} | Custom statement issues`)
265+
cy.contains('Save and continue').click()
266+
267+
cy.title().should('eq', `${newOrganisationName} | Statement results`)
268+
cy.contains('Save and continue').click()
269+
270+
cy.title().should('eq', `${newOrganisationName} | Disproportionate burden`)
271+
cy.contains('Save and continue').click()
272+
273+
cy.title().should('eq', `${newOrganisationName} | Statement decision`)
274+
cy.contains('Save and exit').click()
275+
276+
cy.title().should('eq', `${newOrganisationName} | Retest overview`)
219277
})
220278
})

0 commit comments

Comments
 (0)