Page MenuHomePhabricator

Flow: handle varying permissions in browser tests
Open, MediumPublicFeature

Description


Version: master
Severity: enhancement

Details

Reference
bz67158

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:27 AM
bzimport set Reference to bz67158.
bzimport added a subscriber: Unknown Object (MLST).

Flow browser tests, including flow_logged_in.feature, assume $MEDIAWIKI_USER can
block users and delete and suppress topics and posts. This means pointing tests at an arbitrary MEDIAWIKI_URL will fail until an admin grants scary permissions to that user.

We could change tests to

Pending the current user can block user  ( suppress topics|delete topics)

and then as I understand it they'll report as skipped rather than failed.

A test API call that gets the current user's rights would be extremely useful, that could be a dependent bug.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:23 PM
Aklapper removed subscribers: Spage, wikibugs-l-list.