Includes fix for content font as well Change-Id: Ie97c5d45c6613889975ca6af59c6bd0856d331dc
34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
Given(/^I open ULS$/) do
|
|
on(PanelPage).trigger_personal_element.when_visible.click
|
|
end
|
|
|
|
Given(/^I open display settings$/) do
|
|
on(PanelPage).panel_display_element.when_visible.click
|
|
end
|
|
|
|
When(/^I open fonts panel of language settings$/) do
|
|
on(PanelPage).panel_fonts_element.click
|
|
end
|
|
|
|
Then(/^the active content font must be the same as font prior to the preview$/) do
|
|
pending('bug #56081') do
|
|
on(PanelPage).get_content_font.should == @original_content_font
|
|
end
|
|
end
|
|
|
|
Then(/^the active interface font must be the same as font prior to the preview$/) do
|
|
on(PanelPage).get_interface_font.should == @original_interface_font
|
|
end
|
|
|
|
Then(/^the selected content font must be "(.*?)"$/) do |font|
|
|
step 'I open display settings'
|
|
step 'I open fonts panel of language settings'
|
|
on(PanelPage).selected_content_font.should == font
|
|
end
|
|
|
|
Then(/^the selected interface font must be "(.*?)"$/) do |font|
|
|
step 'I open display settings'
|
|
step 'I open fonts panel of language settings'
|
|
on(PanelPage).selected_interface_font.should == font
|
|
end
|