[BrowserTest] new locator for page content after Save

Change-Id: I1f9f9542cc5c7da40f0e219ccc393255f2233535
This commit is contained in:
Cmcmahon 2014-06-17 06:58:14 -07:00
parent 00af43495b
commit d0ad8076a9
2 changed files with 2 additions and 1 deletions

View file

@ -87,7 +87,7 @@ When(/^I see the IP warning signs$/) do
end
Then(/^Page text should contain (.+)$/) do |output_string|
on(VisualEditorPage).page_text_element.when_present.text.should match Regexp.escape(output_string + " #{@random_string}")
on(VisualEditorPage).page_text_after_save_element.when_present.text.should match Regexp.escape(output_string + " #{@random_string}")
end
Then(/^I can click the X on the save box$/) do

View file

@ -23,6 +23,7 @@ class VisualEditorPage
span(:newpage_linksuggestion, text: "DoesNotExist")
span(:options_in_hamburger, class: "oo-ui-tool-title", text: "Options")
div(:page_text, id: "mw-content-text")
div(:page_text_after_save, class: "ve-ce-documentNode mw-content-ltr ve-ce-branchNode noime")
a(:page_title, text: /Page title/)
a(:paragraph, text: /Paragraph/)
a(:preformatted, text: /Preformatted/)