Fix random failing test
Make sure we wait till page reloads after request was merged. Otherwise we get request running which fails next test Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
168b3e973f
commit
74d73bd953
2 changed files with 8 additions and 2 deletions
|
@ -8,10 +8,12 @@ Feature: Project Merge Requests Acceptance
|
|||
Given I am on the Merge Request detail page
|
||||
When I click on "Remove source branch" option
|
||||
And I click on Accept Merge Request
|
||||
Then I should not see the Remove Source Branch button
|
||||
Then I should see merge request merged
|
||||
And I should not see the Remove Source Branch button
|
||||
|
||||
@javascript
|
||||
Scenario: Accepting the Merge Request without removing the source branch
|
||||
Given I am on the Merge Request detail page
|
||||
When I click on Accept Merge Request
|
||||
Then I should see the Remove Source Branch button
|
||||
Then I should see merge request merged
|
||||
And I should see the Remove Source Branch button
|
||||
|
|
|
@ -32,4 +32,8 @@ class Spinach::Features::ProjectMergeRequestsAcceptance < Spinach::FeatureSteps
|
|||
step 'I am signed in as a developer of the project' do
|
||||
login_as(@user)
|
||||
end
|
||||
|
||||
step 'I should see merge request merged' do
|
||||
expect(page).to have_content('The changes were merged into')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue