import { Page } from '@playwright/test'; import { BasePage } from './BasePage'; import { getPageConfig } from '../config/test-pages'; export class NewsPage extends BasePage { constructor(page: Page, config?) { const pageConfig = getPageConfig('news'); super(page, pageConfig.url, config); } async getNewsCount(): Promise { return await this.page.locator('.news-item').count(); } }