You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E2E: drop the prime-logins project and AUTHENTICATE_ACCOUNTS
The setup project logged in as a per-build-type list of accounts before the
suite, so the specs would find cookies rather than all log in at once. The
list is hand written per test group: it drifts from what the specs use, an
account missing from it got no priming at all, and a build type running the
wrong list paid for logins no spec needs. The login lock covers the same
ground without a list.
Removes the project, the env var behind it, the resolver and the reporting
script that read it, the 25 TeamCity parameters setting it and the semicolon
form EXTRA_ENV_VARS grew to carry one. Also the priming half of the legacy
Jest global setup, which has had no specs to prime since the last one moved
to Playwright Test.
// Uncomment the following to route it to the test channel, don't forget to change the reference in the exec() calls below, too.
518
490
// Ask someone from the Team Calypso Platform to know what these channels are. They are also available in the source for `announce.sh` (par of Gutenbot).
**Accounts**: one fixture per key of `fixtureAccounts` in [`lib/pw-base.ts`](lib/pw-base.ts), plus `accountGivenByEnvironment` and `accountSMS`. Declaring an account fixture logs in as it, whether or not the test body uses it, so take only the ones the test needs. To have a build log in as an account before the suite instead of during it, add it to that build type's `AUTHENTICATE_ACCOUNTS` parameter; see [`setup/prime-logins.setup.ts`](setup/prime-logins.setup.ts).
145
-
146
-
To see what every build type logs in as before its suite, without starting a build:
147
-
148
-
```bash
149
-
# From the repository root. Regenerate only after a .teamcity change; the DSL needs JDK 17.
**Accounts**: one fixture per key of `fixtureAccounts` in [`lib/pw-base.ts`](lib/pw-base.ts), plus `accountGivenByEnvironment` and `accountSMS`. Declaring an account fixture logs in as it, whether or not the test body uses it, so take only the ones the test needs. A run logs in as each account once: the first worker to reach it logs in and saves the cookies the rest load.
0 commit comments