diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-25 11:11:30 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-25 11:11:30 +0100 |
commit | 2ef6172db03343772ba56558f695750d25ddc562 (patch) | |
tree | 0a1879a553247da4d7e98013d4ef7851824d28d9 /features/steps/shared/markdown.rb | |
parent | fd3750c68590119d0cfb48c8b5245f6c09cc9f02 (diff) | |
download | gitlab-ce-2ef6172db03343772ba56558f695750d25ddc562.tar.gz |
fixed spinach tests
Diffstat (limited to 'features/steps/shared/markdown.rb')
-rw-r--r-- | features/steps/shared/markdown.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/shared/markdown.rb b/features/steps/shared/markdown.rb index 6610b97ecb2..c2bec2a6320 100644 --- a/features/steps/shared/markdown.rb +++ b/features/steps/shared/markdown.rb @@ -30,7 +30,7 @@ module SharedMarkdown end step 'I should see the Markdown write tab' do - expect(find('.gfm-form')).to have_css('.js-md-write-button', visible: true) + expect(first('.gfm-form')).to have_link('Write', visible: true) end step 'I should see the Markdown preview' do @@ -49,9 +49,9 @@ module SharedMarkdown end step 'I preview a description text like "Bug fixed :smile:"' do - page.within('.gfm-form') do + page.within(first('.gfm-form')) do fill_in 'Description', with: 'Bug fixed :smile:' - find('.js-md-preview-button').click + click_link 'Preview' end end |