mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Create a new shared module for common issue/merge request behavior, use `expect` syntax instead of `should`, and avoid `visible: false` in the `have_css` matcher.
16 lines
273 B
Ruby
16 lines
273 B
Ruby
module SharedIssuable
|
|
include Spinach::DSL
|
|
|
|
def edit_issuable
|
|
find('.issue-btn-group').click_link 'Edit'
|
|
end
|
|
|
|
step 'I click link "Edit" for the merge request' do
|
|
edit_issuable
|
|
end
|
|
|
|
step 'I click link "Edit" for the issue' do
|
|
edit_issuable
|
|
end
|
|
end
|