Commit 2e7c0c68 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Use query which is not class-order dependent

parent 493bbf6b
......@@ -214,7 +214,7 @@ RSpec.describe 'New project', :js do
it 'the tab shows the list of templates available' do
page.within('#custom-group-project-templates') do
# Show templates in case they're collapsed
page.all(:xpath, "//div[@class='template-group-options js-template-group-options']", wait: false).each(&:click)
page.find_all('div', class: ['js-template-group-options', 'template-group-options', '!expanded'], wait: false).each(&:click)
expect(page).to have_selector('.template-option', count: template_number)
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