mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
[BrowserTest] new locator for page content after Save
Change-Id: I1f9f9542cc5c7da40f0e219ccc393255f2233535
This commit is contained in:
parent
00af43495b
commit
d0ad8076a9
|
@ -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
|
||||
|
|
|
@ -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/)
|
||||
|
|
Loading…
Reference in a new issue