diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 01:36:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 05:12:42 -0400 |
commit | 584f8601eff79fe6e400026ba6db086002ce2cba (patch) | |
tree | ca092524666d4b7353d766512800b8992359ac2a /features/steps/shared/markdown.rb | |
parent | 69bbc413fec7aa4168d9ff12df5421674db90032 (diff) | |
download | gitlab-ce-584f8601eff79fe6e400026ba6db086002ce2cba.tar.gz |
Change `within` to `page.within` in feature steps
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 34172f5bb51..56b36f7c46c 100644 --- a/features/steps/shared/markdown.rb +++ b/features/steps/shared/markdown.rb @@ -19,7 +19,7 @@ module SharedMarkdown end step 'The Markdown preview tab should say there is nothing to do' do - within('.gfm-form') do + page.within('.gfm-form') do find('.js-md-preview-button').click expect(find('.js-md-preview')).to have_content('Nothing to preview.') end @@ -38,7 +38,7 @@ module SharedMarkdown end step 'The Markdown preview tab should display rendered Markdown' do - within('.gfm-form') do + page.within('.gfm-form') do find('.js-md-preview-button').click expect(find('.js-md-preview')).to have_css('img.emoji', visible: true) end @@ -49,7 +49,7 @@ module SharedMarkdown end step 'I preview a description text like "Bug fixed :smile:"' do - within('.gfm-form') do + page.within('.gfm-form') do fill_in 'Description', with: 'Bug fixed :smile:' find('.js-md-preview-button').click end |