Investigate if logging in via the API and injecting the cookie in the browser would work. For more information see 698467.
I think Ruby framework had a similar feature.
Investigate if logging in via the API and injecting the cookie in the browser would work. For more information see 698467.
I think Ruby framework had a similar feature.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
WIP selenium: Speed up login | mediawiki/core | master | +4 -11 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T210726 Selenium framework maintenance | |||
Open | None | T225730 Reduce runtime of MW shared gate Jenkins jobs to 5 min | |||
Open | None | T284568 Speed up login |
Change 866606 had a related patch set uploaded (by Zfilipin; author: Zfilipin):
[mediawiki/core@master] WIP: selenium: Speed up login
If you really want to speed up login, you could just define a custom authentication provider where you can set the name of the user in a cookie and the system automatically considers you as being logged in via that cookie. No extra login/logout actions required.
@Tgr I don't know how to do that. ๐ Could you please submit a sample patch, or point me to documentation? Would that work on a public wiki, like the beta cluster or test2?
I really do want to speed up login. We have a test that checks that login works, I only want to login that one time. The rest of the tests can assume the login works, so any shortcut would be welcome.
Change 866606 abandoned by Zfilipin:
[mediawiki/core@master] WIP selenium: Speed up login
Reason: