mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
import { Page } from '@playwright/test';
|
|
import { ANCV } from '../../models/ancv';
|
|
|
|
class AncvPage {
|
|
public readonly page: Page;
|
|
|
|
public readonly ancv: ANCV;
|
|
|
|
constructor(page: Page) {
|
|
this.page = page;
|
|
this.ancv = new ANCV(page);
|
|
}
|
|
|
|
async goto(url?: string) {
|
|
const gotoUrl = url ? url : 'http://localhost:3024/ancv?countryCode=NL';
|
|
await this.page.goto(gotoUrl);
|
|
}
|
|
}
|
|
|
|
export { AncvPage };
|