diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-22 12:18:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-22 12:18:00 +0300 |
commit | 932d504aaadc03b978eccad962a12be93f84be47 (patch) | |
tree | da6fba1cb0b34d8a5c8ecd57f85b23fc3ee9ed63 /spec/features | |
parent | c123291db91a8c54865779ee29ddebaad159d147 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/incidents/incident_details_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/issues/incident_issue_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/issues/issue_detail_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/issues/spam_issues_spec.rb | 10 | ||||
-rw-r--r-- | spec/features/labels_hierarchy_spec.rb | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/spec/features/incidents/incident_details_spec.rb b/spec/features/incidents/incident_details_spec.rb index b704a0515c8..dbcd524cad0 100644 --- a/spec/features/incidents/incident_details_spec.rb +++ b/spec/features/incidents/incident_details_spec.rb @@ -21,7 +21,7 @@ RSpec.describe 'Incident details', :js do context 'when a developer+ displays the incident' do it 'shows the incident' do page.within('.issuable-details') do - expect(find('h2')).to have_content(incident.title) + expect(find('h1')).to have_content(incident.title) end end @@ -33,7 +33,7 @@ RSpec.describe 'Incident details', :js do page.within('.issuable-details') do incident_tabs = find('[data-testid="incident-tabs"]') - expect(find('h2')).to have_content(incident.title) + expect(find('h1')).to have_content(incident.title) expect(incident_tabs).to have_content('Summary') expect(incident_tabs).to have_content(incident.description) end diff --git a/spec/features/issues/incident_issue_spec.rb b/spec/features/issues/incident_issue_spec.rb index 3033a138551..2956ddede2e 100644 --- a/spec/features/issues/incident_issue_spec.rb +++ b/spec/features/issues/incident_issue_spec.rb @@ -38,7 +38,7 @@ RSpec.describe 'Incident Detail', :js do incident_tabs = find('[data-testid="incident-tabs"]') aggregate_failures 'shows title and Summary tab' do - expect(find('h2')).to have_content(incident.title) + expect(find('h1')).to have_content(incident.title) expect(incident_tabs).to have_content('Summary') expect(incident_tabs).to have_content(incident.description) end diff --git a/spec/features/issues/issue_detail_spec.rb b/spec/features/issues/issue_detail_spec.rb index b37c8e9d1cf..88709d66887 100644 --- a/spec/features/issues/issue_detail_spec.rb +++ b/spec/features/issues/issue_detail_spec.rb @@ -17,7 +17,7 @@ RSpec.describe 'Issue Detail', :js do it 'shows the issue' do page.within('.issuable-details') do - expect(find('h2')).to have_content(issue.title) + expect(find('h1')).to have_content(issue.title) end end end @@ -85,7 +85,7 @@ RSpec.describe 'Issue Detail', :js do it 'shows the issue' do page.within('.issuable-details') do - expect(find('h2')).to have_content(issue.reload.title) + expect(find('h1')).to have_content(issue.reload.title) end end end diff --git a/spec/features/issues/spam_issues_spec.rb b/spec/features/issues/spam_issues_spec.rb index 70d7deadec3..de9888295b9 100644 --- a/spec/features/issues/spam_issues_spec.rb +++ b/spec/features/issues/spam_issues_spec.rb @@ -66,7 +66,7 @@ RSpec.describe 'New issue', :js do it 'allows issue creation' do click_button 'Create issue' - expect(page.find('.issue-details h2.title')).to have_content('issue title') + expect(page.find('.issue-details h1.title')).to have_content('issue title') expect(page.find('.issue-details .description')).to have_content('issue description') end @@ -111,7 +111,7 @@ RSpec.describe 'New issue', :js do click_button 'Create issue' - expect(page.find('.issue-details h2.title')).to have_content('issue title') + expect(page.find('.issue-details h1.title')).to have_content('issue title') expect(page.find('.issue-details .description')).to have_content('issue description') end end @@ -126,7 +126,7 @@ RSpec.describe 'New issue', :js do click_button 'Create issue' expect(page).not_to have_css('.recaptcha') - expect(page.find('.issue-details h2.title')).to have_content('issue title') + expect(page.find('.issue-details h1.title')).to have_content('issue title') expect(page.find('.issue-details .description')).to have_content('issue description') end @@ -152,7 +152,7 @@ RSpec.describe 'New issue', :js do click_button 'Create issue' expect(page).not_to have_css('.recaptcha') - expect(page.find('.issue-details h2.title')).to have_content('issue title') + expect(page.find('.issue-details h1.title')).to have_content('issue title') expect(page.find('.issue-details .description')).to have_content('issue description') end @@ -181,7 +181,7 @@ RSpec.describe 'New issue', :js do click_button 'Create issue' - expect(page.find('.issue-details h2.title')).to have_content('issue title') + expect(page.find('.issue-details h1.title')).to have_content('issue title') expect(page.find('.issue-details .description')).to have_content('issue description') end end diff --git a/spec/features/labels_hierarchy_spec.rb b/spec/features/labels_hierarchy_spec.rb index a064eef5cc8..479199b72b7 100644 --- a/spec/features/labels_hierarchy_spec.rb +++ b/spec/features/labels_hierarchy_spec.rb @@ -160,7 +160,7 @@ RSpec.describe 'Labels Hierarchy', :js do find('.btn-confirm').click - expect(page.find('.issue-details h2.title')).to have_content('new created issue') + expect(page.find('.issue-details h1.title')).to have_content('new created issue') expect(page).to have_selector('span.gl-label-text', text: grandparent_group_label.title) expect(page).to have_selector('span.gl-label-text', text: parent_group_label.title) expect(page).to have_selector('span.gl-label-text', text: project_label_1.title) |