More refactoring ULS font selection tests

Change-Id: I6595e279657948265c45407be2c01a4587fdbc94
This commit is contained in:
Niklas Laxström
2013-10-23 13:00:04 +03:00
committed by Zeljko Filipin
parent a5c7b43282
commit 48a5772e9e
4 changed files with 20 additions and 30 deletions

View File

@@ -9,3 +9,13 @@ 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
on(PanelPage).get_content_font.should == @original_content_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