mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
[BrowserTest] Remove unused steps and locators
No more iframes Change-Id: I3d6420f2a017a132d5695921daa5efb5117f3176
This commit is contained in:
parent
5d03721bb7
commit
df1013b7da
|
@ -22,10 +22,6 @@ When(/^I insert the text (.*?)$/) do |input_string|
|
|||
on(VisualEditorPage).content_element.when_present(10).send_keys(input_string)
|
||||
end
|
||||
|
||||
When(/^I click Save page another time$/) do
|
||||
on(VisualEditorPage).another_save_page_element.when_present.click
|
||||
end
|
||||
|
||||
Then(/^the saved page should contain all three edits\.$/) do
|
||||
expect(on(VisualEditorPage).page_text_element.when_present(10).text).to match "#{@third_edit_text}#{@second_edit_text}Editing with #{@random_string} #{@first_edit_text}"
|
||||
end
|
||||
|
|
|
@ -24,13 +24,6 @@ When(/^I click Reference$/) do
|
|||
end
|
||||
end
|
||||
|
||||
When(/^I enter (.+) into Content box$/) do |content|
|
||||
on(VisualEditorPage) do |page|
|
||||
page.content_box_element.when_present
|
||||
page.content_box_element.send_keys(content)
|
||||
end
|
||||
end
|
||||
|
||||
When(/^I click use an existing reference button in References User Interface$/) do
|
||||
on(VisualEditorPage).cite_reuse_existing_reference_element.when_present.click
|
||||
end
|
||||
|
|
|
@ -181,8 +181,6 @@ class VisualEditorPage
|
|||
text_area(:formula_area, css: '.oo-ui-popupWidget-popup textarea')
|
||||
|
||||
in_iframe(index: 0) do |frame|
|
||||
span(:another_save_page, class: 'oo-ui-labelElement-label', text: 'Save page', frame: frame)
|
||||
div(:content_box, class: 've-ce-documentNode ve-ce-branchNode', frame: frame) # ALSO USED IN LANGUAGE SCREENSHOT
|
||||
|
||||
# USED IN LANGUAGE SCREENSHOT TEST:
|
||||
text_field(:media_alternative_text, css: 'div.oo-ui-widget.oo-ui-widget-enabled.oo-ui-inputWidget.oo-ui-textInputWidget.ve-ui-mwMediaDialog-altText > input', frame: frame)
|
||||
|
|
Loading…
Reference in a new issue