Sprint D: hardening e2e, /search redirect, scroll restore fix.
CI / skip-ci-check (pull_request) Successful in 29s
CI / docker-ci (pull_request) Successful in 32s
CI / python-lint (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 37s
CI / viewer-unit (pull_request) Successful in 1m53s
CI / admin-unit (pull_request) Successful in 2m39s
CI / e2e (pull_request) Failing after 3m19s
CI / skip-ci-check (pull_request) Successful in 29s
CI / docker-ci (pull_request) Successful in 32s
CI / python-lint (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 37s
CI / viewer-unit (pull_request) Successful in 1m53s
CI / admin-unit (pull_request) Successful in 2m39s
CI / e2e (pull_request) Failing after 3m19s
Admin review smoke tests, CWV budgets, unified gallery at /, and explicit body unlock when closing the photo modal so scroll position restores.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { Page } from '@playwright/test';
|
||||
|
||||
export class AdminLoginPage {
|
||||
constructor(
|
||||
private readonly page: Page,
|
||||
private readonly baseUrl: string,
|
||||
) {}
|
||||
|
||||
async openLogin(): Promise<void> {
|
||||
await this.page.goto(`${this.baseUrl}/login`);
|
||||
}
|
||||
|
||||
async signIn(username: string, password: string): Promise<void> {
|
||||
await this.page.locator('#username').fill(username);
|
||||
await this.page.locator('#password').fill(password);
|
||||
await this.page.getByRole('button', { name: /^Login$/i }).click();
|
||||
await this.page.waitForURL((url) => !url.pathname.endsWith('/login'), { timeout: 30_000 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user