mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Merge branch 'rs-fix-subscription-feature' into 'master'
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. See merge request !853
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user