Refactoring Discarding live preview of interface font

Includes fix for content font as well

Change-Id: Ie97c5d45c6613889975ca6af59c6bd0856d331dc
This commit is contained in:
Niklas Laxström
2013-10-28 11:58:55 +02:00
committed by Amire80
parent 76392359b7
commit b47a8ac5d3
4 changed files with 14 additions and 15 deletions

View File

@@ -16,8 +16,18 @@ Then(/^the active content font must be the same as font prior to the preview$/)
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