| import { Page, Locator } from '@playwright/test'; |
|
|
| |
| |
| |
| export async function getSkipTestsCheckbox(page: Page): Promise<Locator> { |
| return page.locator('[data-testid="skip-tests-checkbox"]'); |
| } |
|
|
| |
| |
| |
| export async function toggleSkipTestsCheckbox(page: Page): Promise<void> { |
| const checkbox = page.locator('[data-testid="skip-tests-checkbox"]'); |
| await checkbox.click(); |
| } |
|
|
| |
| |
| |
| export async function isSkipTestsChecked(page: Page): Promise<boolean> { |
| const checkbox = page.locator('[data-testid="skip-tests-checkbox"]'); |
| const state = await checkbox.getAttribute('data-state'); |
| return state === 'checked'; |
| } |
|
|
| |
| |
| |
| export async function getEditSkipTestsCheckbox(page: Page): Promise<Locator> { |
| return page.locator('[data-testid="edit-skip-tests-checkbox"]'); |
| } |
|
|
| |
| |
| |
| export async function toggleEditSkipTestsCheckbox(page: Page): Promise<void> { |
| const checkbox = page.locator('[data-testid="edit-skip-tests-checkbox"]'); |
| await checkbox.click(); |
| } |
|
|
| |
| |
| |
| export async function isEditSkipTestsChecked(page: Page): Promise<boolean> { |
| const checkbox = page.locator('[data-testid="edit-skip-tests-checkbox"]'); |
| const state = await checkbox.getAttribute('data-state'); |
| return state === 'checked'; |
| } |
|
|
| |
| |
| |
| export async function isSkipTestsBadgeVisible(page: Page, featureId: string): Promise<boolean> { |
| const badge = page.locator(`[data-testid="skip-tests-badge-${featureId}"]`); |
| return await badge.isVisible().catch(() => false); |
| } |
|
|
| |
| |
| |
| export async function getSkipTestsBadge(page: Page, featureId: string): Promise<Locator> { |
| return page.locator(`[data-testid="skip-tests-badge-${featureId}"]`); |
| } |
|
|
| |
| |
| |
| export async function clickManualVerify(page: Page, featureId: string): Promise<void> { |
| const button = page.locator(`[data-testid="manual-verify-${featureId}"]`); |
| await button.click(); |
| } |
|
|
| |
| |
| |
| export async function isManualVerifyButtonVisible(page: Page, featureId: string): Promise<boolean> { |
| const button = page.locator(`[data-testid="manual-verify-${featureId}"]`); |
| return await button.isVisible().catch(() => false); |
| } |
|
|
| |
| |
| |
| export async function clickMoveBack(page: Page, featureId: string): Promise<void> { |
| const button = page.locator(`[data-testid="move-back-${featureId}"]`); |
| await button.click(); |
| } |
|
|
| |
| |
| |
| export async function isMoveBackButtonVisible(page: Page, featureId: string): Promise<boolean> { |
| const button = page.locator(`[data-testid="move-back-${featureId}"]`); |
| return await button.isVisible().catch(() => false); |
| } |
|
|