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

@@ -31,9 +31,6 @@ When(/^I open "(.*?)" panel of language settings$/) do |panel|
end
case panel
when "Fonts"
page.panel_display_element.when_visible.click
page.panel_fonts_element.click
when "Input"
page.panel_input_element.when_visible.click
else
@@ -42,11 +39,11 @@ When(/^I open "(.*?)" panel of language settings$/) do |panel|
end
end
When(/^I select "(.*?)" font for the interface language for the live preview$/) do |font|
When(/^I select (.*?) font for the interface language for the live preview$/) do |font|
on(PanelPage).font_for_interface = font
end
When(/^I select "(.*?)" font for the content language for the live preview$/) do |font|
When(/^I select (.*?) font for the content language for the live preview$/) do |font|
on(PanelPage).font_for_content = font
end