Commit graph

3 commits

Author SHA1 Message Date
Toon Claes
eaffe8cd72 Test there is no Merge Request button when MRs are disabled
In case Merge Requests are disabled on the project, no one should see
the Merge Request button.
2017-01-25 11:11:12 +01:00
Toon Claes
2669fdbe74 Ensure the correct Merge Request button is found
The project was not public and this caused a 404. So the tests were
giving deceiving results.

By searching for the Merge Request button in `#content-body` this
is overcome, and also other Merge Request buttons (e.g. in the
sidebar) are ignored.
2017-01-25 11:07:02 +01:00
Toon Claes
0d2c68d546 Deduplicate tests for Merge Request buttons
Use shared examples to test the presence of the Merge Request button
on the various pages.
2017-01-23 15:52:53 +01:00