Update reference test to click the right element

This behaviour changed in Ife957374cb0d21446db2067171e68fb726ad8347
and related changes

Bug: T214049
Change-Id: I48df96eedebc6e34d62d1cdb02cddb7a091dae86
This commit is contained in:
jdlrobson 2019-07-18 13:16:04 -07:00
parent 8c91faec1a
commit 28c84d7d0d
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ When(/^I click on the history link in the last modified bar$/) do
end
When(/^I click on the page$/) do
on(ArticlePage).content_wrapper_element.click
on(ArticlePage).transparent_shield_element.when_visible(10).click
end
When(/^I click the unwatch star$/) do

View File

@ -1,4 +1,4 @@
class ArticlePage
class ArticlePage # rubocop:disable Metrics/ClassLength
include PageObject
page_url '<%=params[:article_name]%><%=params[:hash]%>'
@ -148,7 +148,7 @@ class ArticlePage
# loader
element(:content_wrapper, 'main')
div(:content, id: 'bodyContent')
div(:transparent_shield, css: '.transparent-shield')
# secondary menu
## languages
a(:switch_language_page_action, css: '#page-actions .language-selector')