Linden Crandall 5075f5c5d8
Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
commit upstream files
2025-02-06 04:14:18 +09:00

33 lines
902 B
JavaScript

const { AuthenticatedPage } = require('../authenticated-page');
export class AdminApplicationsPage extends AuthenticatedPage {
screenshotPath = '/admin-settings/apps';
/**
* @param {import('@playwright/test').Page} page
*/
constructor(page) {
super(page);
this.searchInput = page.locator('[id="search-input"]');
this.appRow = page.getByTestId('app-row');
this.appsDrawerLink = page.getByTestId('apps-drawer-link');
this.appsLoader = page.getByTestId('apps-loader');
}
async openApplication(appName) {
await this.searchInput.fill(appName);
await this.appRow.locator(this.page.getByText(appName)).click();
}
async navigateTo() {
await this.profileMenuButton.click();
await this.adminMenuItem.click();
await this.appsDrawerLink.click();
await this.isMounted();
await this.appsLoader.waitFor({
state: 'detached',
});
}
}