Logging and then opening a new page in Windmill tests sometimes doesn't work
Bug #487657 reported by
Björn Tillenius
This bug report is a duplicate of:
Bug #515494: Second iteration of any windmill test that uses lpuser.ensure_login will fail.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned |
Bug Description
If you have code such as....
client = WindmillTestCli
... it sometimes happens that you are logged out after opening the page. This could have something to do with the way we reset the db between tests, since I think I've never seen this for the first test, or when run standalone.
To post a comment you must log in.
Actually, what probably happens is that the previous test already was logged in as the same user. The ensure_login() method will look at the page, see that the user is already logged in, and thus won't try to log in again. But since we reset the db, the user is actually logged out.