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
@@ -1,7 +1,19 @@
|
||||
When(/^I am on the main page$/) do
|
||||
visit MainPage
|
||||
end
|
||||
|
||||
Then(/^I open Input panel of language settings$/) do
|
||||
on(PanelPage).panel_input_element.when_visible.click
|
||||
on(PanelPage).panel_input_element.when_visible.click
|
||||
end
|
||||
|
||||
Then(/^I open Input side panel of language settings$/) do
|
||||
on(PanelPage).panel_side_input_element.when_visible.click
|
||||
on(PanelPage).panel_side_input_element.when_visible.click
|
||||
end
|
||||
|
||||
Then(/^the Interlanguage links should use Autonym font$/) do
|
||||
on(InterlanguagePage).interlang_link_element.style("font-family").should == "'Autonym',sans-serif"
|
||||
end
|
||||
|
||||
Then(/^elements that are not Interlanguage links should not use Autonym font$/) do
|
||||
on(MainPage).non_interlanguage_links_use_autonym_font?.should == false
|
||||
end
|
||||
|
||||
@@ -76,10 +76,6 @@ Then(/^the language list of ULS should use Autonym font$/) do
|
||||
on(PanelPage).autonym_element.style("font-family").should == "'Autonym',sans-serif"
|
||||
end
|
||||
|
||||
Then(/^the Interlanguage area should use Autonym font$/) do
|
||||
on(InterlanguagePage).interlang_link_element.style("font-family").should == "'Autonym',sans-serif"
|
||||
end
|
||||
|
||||
Then(/^I should see (.*) as the selected input language$/) do |language|
|
||||
on(PanelPage).default_language_button_element.text.should == language
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user