mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-06 23:39:38 +01:00
22 lines
625 B
TypeScript
22 lines
625 B
TypeScript
import { Locator, Page } from '@playwright/test';
|
|
|
|
import { step } from '../common';
|
|
|
|
export class AnalyticsSection {
|
|
readonly heading: Locator;
|
|
readonly continueButton: Locator;
|
|
readonly toggleSwitch: Locator;
|
|
|
|
constructor(page: Page) {
|
|
this.continueButton = page.getByTestId('@analytics/continue-button');
|
|
this.heading = page.getByTestId('@analytics/consent/heading');
|
|
this.toggleSwitch = page.getByTestId('@analytics/toggle-switch');
|
|
}
|
|
|
|
@step()
|
|
async passThroughAnalytics() {
|
|
await this.continueButton.click();
|
|
await this.continueButton.click();
|
|
}
|
|
}
|