Change qa-* class references to rspec-* in spec/features/contextual_sidebar_spec.rb

This commit is contained in:
Tanya Pazitny 2019-07-29 19:18:54 +00:00 committed by Mayra Cabrera
parent b6b9ccbb33
commit a0a3e29982
3 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@
= @project.name
%ul.sidebar-top-level-items
= nav_link(path: sidebar_projects_paths, html_options: { class: 'home' }) do
= link_to project_path(@project), class: 'shortcuts-project', data: { qa_selector: 'project_link' } do
= link_to project_path(@project), class: 'shortcuts-project rspec-project-link', data: { qa_selector: 'project_link' } do
.nav-icon-container
= sprite_icon('home')
%span.nav-item-name
@ -163,7 +163,7 @@
- if project_nav_tab? :pipelines
= nav_link(controller: [:pipelines, :builds, :jobs, :pipeline_schedules, :artifacts]) do
= link_to project_pipelines_path(@project), class: 'shortcuts-pipelines qa-link-pipelines' do
= link_to project_pipelines_path(@project), class: 'shortcuts-pipelines qa-link-pipelines rspec-link-pipelines' do
.nav-icon-container
= sprite_icon('rocket')
%span.nav-item-name#js-onboarding-pipelines-link

View file

@ -1,4 +1,4 @@
%a.toggle-sidebar-button.js-toggle-sidebar.qa-toggle-sidebar{ role: "button", type: "button", title: "Toggle sidebar" }
%a.toggle-sidebar-button.js-toggle-sidebar.qa-toggle-sidebar.rspec-toggle-sidebar{ role: "button", type: "button", title: "Toggle sidebar" }
= sprite_icon('angle-double-left', css_class: 'icon-angle-double-left')
= sprite_icon('angle-double-right', css_class: 'icon-angle-double-right')
%span.collapse-text= _("Collapse sidebar")

View file

@ -16,21 +16,21 @@ describe 'Contextual sidebar', :js do
it 'shows flyout navs when collapsed or expanded apart from on the active item when expanded' do
expect(page).not_to have_selector('.js-sidebar-collapsed')
find('.qa-link-pipelines').hover
find('.rspec-link-pipelines').hover
expect(page).to have_selector('.is-showing-fly-out')
find('a[data-qa-selector="project_link"]').hover
find('.rspec-project-link').hover
expect(page).not_to have_selector('.is-showing-fly-out')
find('.qa-toggle-sidebar').click
find('.rspec-toggle-sidebar').click
find('.qa-link-pipelines').hover
find('.rspec-link-pipelines').hover
expect(page).to have_selector('.is-showing-fly-out')
find('a[data-qa-selector="project_link"]').hover
find('.rspec-project-link').hover
expect(page).to have_selector('.is-showing-fly-out')
end