Commit 2ef6172d authored by Phil Hughes's avatar Phil Hughes

fixed spinach tests

parent fd3750c6
...@@ -30,7 +30,7 @@ module SharedMarkdown ...@@ -30,7 +30,7 @@ module SharedMarkdown
end end
step 'I should see the Markdown write tab' do 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 end
step 'I should see the Markdown preview' do step 'I should see the Markdown preview' do
...@@ -49,9 +49,9 @@ module SharedMarkdown ...@@ -49,9 +49,9 @@ module SharedMarkdown
end end
step 'I preview a description text like "Bug fixed :smile:"' do 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:' fill_in 'Description', with: 'Bug fixed :smile:'
find('.js-md-preview-button').click click_link 'Preview'
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment