Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update two-part tariff review pages to add Cypress data test attributes #1139

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions app/views/bill-runs/review-licence.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,40 +46,46 @@
<li class="govuk-summary-list__actions-list-item">
<a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/system/licences/{{ licence.licenceId }}/summary">
href="/system/licences/{{ licence.licenceId }}/summary"
data-test="summary-link">
Summary
</a>
</li>
<li class="govuk-summary-list__actions-list-item">
<a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/system/licences/{{ licence.licenceId }}/returns">
href="/system/licences/{{ licence.licenceId }}/returns"
data-test="returns-link">
Returns
</a>
</li>
<li class="govuk-summary-list__actions-list-item">
<a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/system/licences/{{ licence.licenceId }}/set-up">
href="/system/licences/{{ licence.licenceId }}/set-up"
data-test="charge-information-link">
Charge information
</a>
</li>
{% else %}
<li class="govuk-summary-list__actions-list-item"><a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/licences/{{ licence.licenceId }}#summary">
href="/licences/{{ licence.licenceId }}#summary"
data-test="summary-link">
Summary
</a>
</li>
<li class="govuk-summary-list__actions-list-item"><a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/licences/{{ licence.licenceId }}#returns">
href="/licences/{{ licence.licenceId }}#returns"
data-test="returns-link">
Returns
</a>
</li>
<li class="govuk-summary-list__actions-list-item"><a
class="govuk-link govuk-!-font-weight-bold govuk-link--no-visited-state govuk-link--no-underline"
href="/licences/{{ licence.licenceId }}#charge">
href="/licences/{{ licence.licenceId }}#charge"
data-test="charge-information-link">
Charge information
</a>
</li>
Expand Down Expand Up @@ -420,7 +426,7 @@

<div class="govuk-!-margin-top-6">
<span class="govuk-body govuk-!-font-weight-regular" data-test="charge-version-{{ chargeVersionIndex }}-charge-reference-{{chargeReferenceIndex}}-element-count-{{ chargeElementIndex }}">{{chargeElement.elementNumber}}</span>
<span class="float-right">
<span class="float-right" data-test="charge-version-{{ chargeVersionIndex }}-charge-reference-{{chargeReferenceIndex}}-element-status-{{ chargeElementIndex }}">
{{ statusTag(chargeElement.elementStatus) }}
</span>
<h3 class="govuk-heading-s govuk-!-margin-bottom-1" data-test="charge-version-{{ chargeVersionIndex }}-charge-reference-{{chargeReferenceIndex}}-element-description-{{ chargeElementIndex }}">{{chargeElement.elementDescription}}
Expand Down
Loading