Don't expect underlying DB data to be updated in feature spec
Only assert that the page shows something, this waits for requests to be completed. Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
3c6fad6429
commit
3c1485868c
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I should see closed merge request "Bug NS-04"' do
|
||||
merge_request = MergeRequest.find_by!(title: "Bug NS-04")
|
||||
expect(merge_request).to be_closed
|
||||
expect(page).to have_content "Bug NS-04"
|
||||
expect(page).to have_content "Closed by"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue