Skip to content
Snippets Groups Projects
Commit d92bb3cf authored by Robert Speicher's avatar Robert Speicher
Browse files

Attempt to fix the "I should see that I am [un]subscribed" steps

Makes use of Capybara methods that wait. Hopefully this will fix the
random timing-related failures of this step.
parent 62886771
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,12 +19,11 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
 
step 'I should see that I am subscribed' do
expect(find(".subscribe-button span").text).to eq "Unsubscribe"
expect(find('.subscribe-button span')).to have_content 'Unsubscribe'
end
 
step 'I should see that I am unsubscribed' do
sleep 0.2
expect(find(".subscribe-button span").text).to eq "Subscribe"
expect(find('.subscribe-button span')).to have_content 'Subscribe'
end
 
step 'I click link "Closed"' do
Loading
Loading
Loading
Loading
@@ -58,11 +58,11 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
 
step 'I should see that I am subscribed' do
expect(find(".subscribe-button span").text).to eq "Unsubscribe"
expect(find('.subscribe-button span')).to have_content 'Unsubscribe'
end
 
step 'I should see that I am unsubscribed' do
expect(find(".subscribe-button span")).to have_content("Subscribe")
expect(find('.subscribe-button span')).to have_content 'Subscribe'
end
 
step 'I click button "Unsubscribe"' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment