|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`ChooseATemplateTypePage - LETTER option is hidden when feature flag is not enabled 1`] = ` |
| 4 | +<DocumentFragment> |
| 5 | + <div |
| 6 | + class="nhsuk-back-link" |
| 7 | + > |
| 8 | + <a |
| 9 | + class="nhsuk-back-link__link" |
| 10 | + href="/templates/manage-templates" |
| 11 | + > |
| 12 | + <svg |
| 13 | + aria-hidden="true" |
| 14 | + class="nhsuk-icon nhsuk-icon__chevron-left" |
| 15 | + height="24" |
| 16 | + viewBox="0 0 24 24" |
| 17 | + width="24" |
| 18 | + xmlns="http://www.w3.org/2000/svg" |
| 19 | + > |
| 20 | + <path |
| 21 | + d="M8.5 12c0-.3.1-.5.3-.7l5-5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L10.9 12l4.3 4.3c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5-5c-.2-.2-.3-.4-.3-.7z" |
| 22 | + /> |
| 23 | + </svg> |
| 24 | + Back to all templates |
| 25 | + </a> |
| 26 | + </div> |
| 27 | + <main |
| 28 | + class="nhsuk-main-wrapper" |
| 29 | + id="maincontent" |
| 30 | + role="main" |
| 31 | + > |
| 32 | + <form |
| 33 | + action="/action" |
| 34 | + > |
| 35 | + <input |
| 36 | + name="form-id" |
| 37 | + readonly="" |
| 38 | + type="hidden" |
| 39 | + value="choose-a-template-type" |
| 40 | + /> |
| 41 | + <input |
| 42 | + name="csrf_token" |
| 43 | + readonly="" |
| 44 | + type="hidden" |
| 45 | + value="no_token" |
| 46 | + /> |
| 47 | + <div |
| 48 | + class="nhsuk-form-group" |
| 49 | + > |
| 50 | + <fieldset |
| 51 | + class="nhsuk-fieldset" |
| 52 | + > |
| 53 | + <legend |
| 54 | + class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l" |
| 55 | + data-testid="templateType-form__legend" |
| 56 | + > |
| 57 | + <h1 |
| 58 | + class="nhsuk-fieldset__heading" |
| 59 | + > |
| 60 | + Choose a template type to create |
| 61 | + </h1> |
| 62 | + </legend> |
| 63 | + <p> |
| 64 | + <a |
| 65 | + href="/features" |
| 66 | + rel="noopener noreferrer" |
| 67 | + target="_blank" |
| 68 | + > |
| 69 | + Learn more about message channels (opens in a new tab) |
| 70 | + </a> |
| 71 | + </p> |
| 72 | + <div |
| 73 | + class="nhsuk-form-group" |
| 74 | + > |
| 75 | + <div |
| 76 | + class="nhsuk-hint" |
| 77 | + id="templateType--hint" |
| 78 | + > |
| 79 | + Select one option |
| 80 | + </div> |
| 81 | + <div |
| 82 | + aria-describedby="templateType--hint" |
| 83 | + class="nhsuk-radios" |
| 84 | + id="templateType" |
| 85 | + > |
| 86 | + <div |
| 87 | + class="nhsuk-radios__item" |
| 88 | + > |
| 89 | + <input |
| 90 | + class="nhsuk-radios__input" |
| 91 | + data-testid="NHS_APP-radio" |
| 92 | + id="templateType-NHS_APP" |
| 93 | + name="templateType" |
| 94 | + type="radio" |
| 95 | + value="NHS_APP" |
| 96 | + /> |
| 97 | + <label |
| 98 | + class="nhsuk-label nhsuk-radios__label" |
| 99 | + for="templateType-NHS_APP" |
| 100 | + id="templateType-NHS_APP--label" |
| 101 | + > |
| 102 | + NHS App message |
| 103 | + </label> |
| 104 | + </div> |
| 105 | + <div |
| 106 | + class="nhsuk-radios__item" |
| 107 | + > |
| 108 | + <input |
| 109 | + class="nhsuk-radios__input" |
| 110 | + data-testid="EMAIL-radio" |
| 111 | + id="templateType-EMAIL" |
| 112 | + name="templateType" |
| 113 | + type="radio" |
| 114 | + value="EMAIL" |
| 115 | + /> |
| 116 | + <label |
| 117 | + class="nhsuk-label nhsuk-radios__label" |
| 118 | + for="templateType-EMAIL" |
| 119 | + id="templateType-EMAIL--label" |
| 120 | + > |
| 121 | + Email |
| 122 | + </label> |
| 123 | + </div> |
| 124 | + <div |
| 125 | + class="nhsuk-radios__item" |
| 126 | + > |
| 127 | + <input |
| 128 | + class="nhsuk-radios__input" |
| 129 | + data-testid="SMS-radio" |
| 130 | + id="templateType-SMS" |
| 131 | + name="templateType" |
| 132 | + type="radio" |
| 133 | + value="SMS" |
| 134 | + /> |
| 135 | + <label |
| 136 | + class="nhsuk-label nhsuk-radios__label" |
| 137 | + for="templateType-SMS" |
| 138 | + id="templateType-SMS--label" |
| 139 | + > |
| 140 | + Text message (SMS) |
| 141 | + </label> |
| 142 | + </div> |
| 143 | + </div> |
| 144 | + </div> |
| 145 | + </fieldset> |
| 146 | + </div> |
| 147 | + <button |
| 148 | + aria-disabled="false" |
| 149 | + class="nhsuk-button" |
| 150 | + data-testid="submit-button" |
| 151 | + id="choose-a-template-type-submit-button" |
| 152 | + type="submit" |
| 153 | + > |
| 154 | + Continue |
| 155 | + </button> |
| 156 | + </form> |
| 157 | + </main> |
| 158 | +</DocumentFragment> |
| 159 | +`; |
| 160 | + |
3 | 161 | exports[`ChooseATemplateTypePage 1`] = ` |
4 | 162 | <DocumentFragment> |
5 | 163 | <div |
@@ -140,6 +298,25 @@ exports[`ChooseATemplateTypePage 1`] = ` |
140 | 298 | Text message (SMS) |
141 | 299 | </label> |
142 | 300 | </div> |
| 301 | + <div |
| 302 | + class="nhsuk-radios__item" |
| 303 | + > |
| 304 | + <input |
| 305 | + class="nhsuk-radios__input" |
| 306 | + data-testid="LETTER-radio" |
| 307 | + id="templateType-LETTER" |
| 308 | + name="templateType" |
| 309 | + type="radio" |
| 310 | + value="LETTER" |
| 311 | + /> |
| 312 | + <label |
| 313 | + class="nhsuk-label nhsuk-radios__label" |
| 314 | + for="templateType-LETTER" |
| 315 | + id="templateType-LETTER--label" |
| 316 | + > |
| 317 | + Letter |
| 318 | + </label> |
| 319 | + </div> |
143 | 320 | </div> |
144 | 321 | </div> |
145 | 322 | </fieldset> |
|
0 commit comments