test: align release gates with installation config
This commit is contained in:
@@ -59,7 +59,7 @@ async function expectShell(page: Page): Promise<void> {
|
||||
|
||||
async function signInLocally(page: Page, account: "ordinary" | "admin", remember = false): Promise<void> {
|
||||
await page.getByLabel("Username").fill(stack.localAccount(account).username);
|
||||
await page.getByLabel("Password").fill(stack.localAccount(account).password);
|
||||
await page.getByLabel("Password", { exact: true }).fill(stack.localAccount(account).password);
|
||||
const rememberControl = page.getByRole("checkbox", { name: /remember me/i });
|
||||
if (remember) await rememberControl.check();
|
||||
await page.getByRole("button", { name: "Sign in", exact: true }).click();
|
||||
|
||||
@@ -29,7 +29,7 @@ test.afterAll(async () => {
|
||||
async function signInLocally(page: Page): Promise<void> {
|
||||
const account = stack.localAccount("ordinary");
|
||||
await page.getByLabel("Username").fill(account.username);
|
||||
await page.getByLabel("Password").fill(account.password);
|
||||
await page.getByLabel("Password", { exact: true }).fill(account.password);
|
||||
await page.getByRole("button", { name: "Sign in", exact: true }).click();
|
||||
await expect(page.getByTestId("app-shell")).toBeVisible({ timeout: 30_000 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user