Refactor "Edit area should use the fonts selected by the user from ULS for a language"

* Removed step which different only in case of one letter
* Removed quotes from few steps
* Fixed the scenario, but marked it as pending due to a bug

Change-Id: Iab160782e73071b543ef550dc7d86171e3636d23
This commit is contained in:
Niklas Laxström
2013-11-13 12:45:46 +02:00
parent d19dc4fdc1
commit f884356c15
5 changed files with 20 additions and 18 deletions

View File

@@ -6,10 +6,6 @@ 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).content_font.should == @original_content_font
@@ -22,13 +18,13 @@ end
Then(/^the selected content font must be "(.*?)"$/) do |font|
step 'I open display settings'
step 'I open fonts panel of language 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'
step 'I open Fonts panel of language settings'
on(PanelPage).selected_interface_font.should == font
end