mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-07 23:10:41 -04:00
We have a `client_request` fixture which does a bunch of useful stuff
like:
- checking the status code of the response
- returning a `BeautifulSoup` object
Lots of our tests still use an older fixture called `client`. This is
not as good because it:
- returns a raw `Response` object
- doesn’t do the additional checks
- means our tests contain a lot of repetetive boilerplate like `page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')`
This commit converts all the tests which had a `client.get(…)` or
`client.post(…)` statement to use their equivalents on `client_request`
instead.
Subsequent commits will remove uses of `client` in other tests, but
doing it this way means the work can be broken up into more manageable
chunks.
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{% extends "withoutnav_template.html" %}
|
||
{% from "components/button/macro.njk" import govukButton %}
|
||
|
||
{% block per_page_title %}
|
||
Resend security code
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<div class="govuk-grid-row">
|
||
<div class="govuk-grid-column-two-thirds">
|
||
<h1 class="heading-large">Resend security code</h1>
|
||
|
||
<p class="govuk-body">Text messages sometimes take a few minutes to arrive. If you do not receive a security code, Notify can send you a new one.</p>
|
||
<p class="govuk-body">
|
||
{{ govukButton({
|
||
"element": "a",
|
||
"text": "Resend security code",
|
||
"href": url_for('main.check_and_resend_verification_code', next=redirect_url)
|
||
}) }}
|
||
</p>
|
||
|
||
<h2 class="heading-medium">If your mobile number has changed</h2>
|
||
<p class="govuk-body">You’ll need to:</p>
|
||
<ul class="govuk-list govuk-list--bullet">
|
||
<li>find a member of your team who has permission to manage settings, team and usage</li>
|
||
<li>ask them to change the mobile number for your account</li>
|
||
<li>select <span class="govuk-body govuk-!-font-weight-bold">Resend security code</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{% endblock %}
|