Refactoring tests to make them more robust

Fixed typo in feature description.
Merged two background steps since the last one did not have any actions
that could be done manually.
Removed assertions from a "given" (login) step. We already extensively
test logging in. If this extension needs login tests, they should go to
a separate feature file.
Moved methods from steps file to page file, following page object
pattern.

Change-Id: Ic5250970362718f5ed887c9ac8fd56948724b210
This commit is contained in:
Zeljko Filipin
2013-10-22 12:09:52 +02:00
committed by Niklas Laxström
parent afc5774ee2
commit f45d5bfcd5
5 changed files with 38 additions and 48 deletions

View File

@@ -6,13 +6,12 @@ Feature: Font selection
I want to change or disable the fonts for interface and content.
In addition the user is provided live preview feature: changes are applied
immediately when selection is made. Changes can either be applied or discared
immediately when selection is made. Changes can either be applied or discarded
for easy testing.
Background:
Given I am logged in
And I set "German" as the interface language
And I inspect current fonts
Scenario: Font selector appears
When I open "Fonts" panel of language settings