Merge lp:~deryck/launchpad/fix-subscriber-windmill-fragility-497112 into lp:launchpad
Proposed by
Deryck Hodge
Status: | Merged |
---|---|
Approved by: | Deryck Hodge |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~deryck/launchpad/fix-subscriber-windmill-fragility-497112 |
Merge into: | lp:launchpad |
Diff against target: |
52 lines (+11/-8) 3 files modified
lib/canonical/launchpad/javascript/bugs/bugtask-index.js (+6/-0) lib/lp/bugs/templates/bug-portlet-subscribers-content.pt (+3/-2) lib/lp/bugs/windmill/tests/test_bug_inline_subscriber.py (+2/-6) |
To merge this branch: | bzr merge lp:~deryck/launchpad/fix-subscriber-windmill-fragility-497112 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Björn Tillenius (community) | code | Approve | |
Review via email: mp+16431@code.launchpad.net |
Commit message
Make the inline subscribing Windmill test less fragile by using IDs instead of xpath.
To post a comment you must log in.
This branch attempts to fix the bug subscribing Windmill test failure
reported in bug 497112. I say *attempts* because the error only happens
when running the entire Windmill suite and hasn't happened since I
recorded the bug. I can't reproduce this failure.
However, this section of the test could be made less fragile by relying
on IDs rather than xpath to find elements.
So this branch creates an id for direct subscribers and makes the test
use IDs for the direct and dupe subscriber part of the subscribe someone
else section of the test (which was the part that failed).
To test:
./bin/test --layer= BugsWindmillLay er -vvt test_bug_ inline_ subscriber
A couple of additional notes:
1) I focused only on the reported failure area, and I am working on a
branch to clean up the test generally to use these IDs.
2) the official-bug-tags js script is reporting lint errors, which is an
unrelated bit of the code. I have fixed this in a separate drive-by
branch and will put that up for review shortly.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/templates/ bug-portlet- subscribers- content. pt /launchpad/ javascript/ bugs/bugtask- index.js bugs/windmill/ tests/test_ bug_inline_ subscriber. py
lib/lp/
lib/canonical
lib/lp/