Files
trezor-suite/suite/e2e/support/pageObjects/analyticsSection.ts

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();
}
}