15 lines
425 B
TypeScript
15 lines
425 B
TypeScript
import { Page } from '@playwright/test';
|
|
import { BasePage } from './BasePage';
|
|
import { getPageConfig } from '../config/test-pages';
|
|
|
|
export class ServicesPage extends BasePage {
|
|
constructor(page: Page, config?) {
|
|
const pageConfig = getPageConfig('services');
|
|
super(page, pageConfig.url, config);
|
|
}
|
|
|
|
async getServiceCount(): Promise<number> {
|
|
return await this.page.locator('.service-item').count();
|
|
}
|
|
}
|