Commit 34264b6a authored by Simon Knox's avatar Simon Knox

Fix element selectors to account for extra classes

Using class= requires an exact match
parent 00188c61
...@@ -45,7 +45,7 @@ describe 'Environments page', :js do ...@@ -45,7 +45,7 @@ describe 'Environments page', :js do
it 'shows an enabled play button' do it 'shows an enabled play button' do
find('.js-environment-actions-dropdown').click find('.js-environment-actions-dropdown').click
play_button = %q{button[class="js-manual-action-link no-btn btn"]} play_button = %q{button.js-manual-action-link.no-btn.btn}
expect(page).to have_selector(play_button) expect(page).to have_selector(play_button)
end end
...@@ -127,7 +127,7 @@ describe 'Environments page', :js do ...@@ -127,7 +127,7 @@ describe 'Environments page', :js do
it 'show a disabled play button' do it 'show a disabled play button' do
find('.js-environment-actions-dropdown').click find('.js-environment-actions-dropdown').click
disabled_play_button = %q{button[class="js-manual-action-link no-btn btn disabled"]} disabled_play_button = %q{button.js-manual-action-link.no-btn.btn.disabled}
expect(page).to have_selector(disabled_play_button) expect(page).to have_selector(disabled_play_button)
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