Skip to content

Commit

Permalink
[ci] Make feature test more flexible
Browse files Browse the repository at this point in the history
This test started to fail constantly because of having multiple whitespaces
instead of one in the view.
The corresponding view includes a newline within the presented string
which caused the text to fail.
  • Loading branch information
bgeuken committed Jun 25, 2018
1 parent bf94985 commit 0bdee28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/spec/features/webui/packages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
request = BsRequest.where(description: 'Hey, why not?', creator: user.login, state: 'review')
expect(request).to exist
expect(page.current_path).to match("/request/show/#{request.first.number}")
expect(page).to have_text("Created by #{user.login}")
expect(page).to have_text(/Created by\s+#{user.login}/)
expect(page).to have_text('In state review')
expect(page).to have_text("Set the devel project to package #{third_project.name} / develpackage for package #{user.home_project} / develpackage")
end
Expand Down

0 comments on commit 0bdee28

Please sign in to comment.