https://bugzilla.wikimedia.org/show_bug.cgi?id=56243
Web browser: ---
Bug ID: 56243
Summary: Mark a scenario as failed if pending rspec expectation
passes
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Quality Assurance
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Rspec expectation in this piece of code (from font_selection_steps.rb[1]) fails
because of bug #56081.
Then(/^the active content font must be the same as font prior to the
preview$/) do
pending('bug #56081') do
on(PanelPage).get_content_font.should == @original_content_font
end
end
We have marked the expectation as pending, so the scenario (and Jenkins job
that runs it) do not fail because of a known bug.
When the bug is fixed, and the expectation no longer fails, it would be great
if the scenario then failed, so we would be alerted that the scenario no longer
needs to be pending.
1:
https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/tests/browser/features/step_definitions/font_selection_steps.rb
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l