Files
mediawiki-extensions-Univer…/tests/browser/features/step_definitions/autonym_steps.rb
Zeljko Filipin 0f331b5b03 Check that elements that do not need it do not use Autonym font
Change-Id: I2a865d61403b5556a8f6d69aa1fe3e10727e87ae
2013-11-27 11:33:44 +02:00

20 lines
615 B
Ruby

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
end
Then(/^I open Input side panel of language settings$/) do
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