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