Skip to content

Commit 5c3ec78

Browse files
authored
Merge pull request #3599 from nhsuk/data-testid
Rename `data-qa` to `data-testid`
2 parents d43d394 + aef59bb commit 5c3ec78

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/components/app_import_errors_component.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ class AppImportErrorsComponent < ViewComponent::Base
1010
1111
<%= content %>
1212
13-
<div data-qa="import-errors">
13+
<div data-testid="import-errors">
1414
<% @errors.each do |error| %>
15-
<h3 class="nhsuk-heading-s" data-qa="import-errors__heading">
15+
<h3 class="nhsuk-heading-s" data-testid="import-errors__heading">
1616
<% if error.attribute == :csv %>
1717
CSV
1818
<% else %>
1919
<%= error.attribute.to_s.humanize %>
2020
<% end %>
2121
</h3>
2222
23-
<ul class="nhsuk-list nhsuk-list--bullet"
24-
data-qa="import-errors__list">
23+
<ul class="nhsuk-list nhsuk-list--bullet" data-testid="import-errors__list">
2524
<% if error.type.is_a?(Array) %>
2625
<% error.type.each do |type| %>
2726
<li><%= sanitize type %></li>

app/views/parent_interface/consent_forms/edit/confirm_school.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<%= govuk_inset_text classes: "nhsuk-u-margin-top-2 nhsuk-u-margin-bottom-4" do %>
88
<p>
9-
<span class="nhsuk-heading-m nhsuk-u-margin-bottom-0" data-qa="school-name">
9+
<span class="nhsuk-heading-m nhsuk-u-margin-bottom-0" data-testid="school-name">
1010
<%= @consent_form.location.name %>
1111
</span>
1212
<%= format_address_single_line(@consent_form.location) %>

0 commit comments

Comments
 (0)