From d165116b5e0e00b18f406e2a30c83102cddca41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Fri, 16 Jun 2017 15:19:38 +0200 Subject: [PATCH] fixes draft spec --- spec/features/admin/legislation/draft_versions_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/legislation/draft_versions_spec.rb b/spec/features/admin/legislation/draft_versions_spec.rb index 439d18d0c..6f33c265f 100644 --- a/spec/features/admin/legislation/draft_versions_spec.rb +++ b/spec/features/admin/legislation/draft_versions_spec.rb @@ -86,15 +86,18 @@ feature 'Admin legislation draft versions' do click_link 'Version 1' + fill_in 'legislation_draft_version_title', with: 'Version 1b' + click_link 'Launch text editor' - fill_in 'legislation_draft_version_title', with: 'Version 1b' fill_in 'legislation_draft_version_body', with: '# Version 1 body\r\n\r\nParagraph\r\n\r\n>Quote' within('.fullscreen') do - click_button 'Save changes' + click_link 'Close text editor' end + click_button 'Save changes' + expect(page).to have_content 'Version 1b' end end