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:
committed by
Niklas Laxström
parent
afc5774ee2
commit
f45d5bfcd5
@@ -34,6 +34,6 @@ And(/^I click on the link to select Hindi$/) do
|
||||
end
|
||||
|
||||
Then(/^I should see the text in the language panel in (.+?)$/) do |language|
|
||||
code = language_to_code(language)
|
||||
code = on(PanelPage).language_to_code(language)
|
||||
on(PanelPage).uls_display_settings_element.attribute('lang').should == code
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user