Check that elements that do not need it do not use Autonym font
Change-Id: I2a865d61403b5556a8f6d69aa1fe3e10727e87ae
This commit is contained in:
committed by
Niklas Laxström
parent
7a9e890e06
commit
0f331b5b03
12
tests/browser/features/support/pages/main_page.rb
Normal file
12
tests/browser/features/support/pages/main_page.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class MainPage
|
||||
include PageObject
|
||||
|
||||
include URL
|
||||
page_url URL.url('Main_Page')
|
||||
|
||||
def non_interlanguage_links_use_autonym_font?
|
||||
@browser.elements(css: '#p-lang li:not(.interlanguage-link)').collect do |element|
|
||||
element.style("font-family")
|
||||
end.to_s.match(/Autonym/) != nil
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user