Commit 493bbf6b authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Set strict order of the classes in xpath search

parent f8b51d65
...@@ -214,7 +214,7 @@ RSpec.describe 'New project', :js do ...@@ -214,7 +214,7 @@ RSpec.describe 'New project', :js do
it 'the tab shows the list of templates available' do it 'the tab shows the list of templates available' do
page.within('#custom-group-project-templates') do page.within('#custom-group-project-templates') do
# Show templates in case they're collapsed # Show templates in case they're collapsed
page.all(:xpath, "//div[@class='js-template-group-options template-group-options']", wait: false).each(&:click) page.all(:xpath, "//div[@class='template-group-options js-template-group-options']", wait: false).each(&:click)
expect(page).to have_selector('.template-option', count: template_number) expect(page).to have_selector('.template-option', count: template_number)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment