mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 15:26:48 +00:00
28 lines
802 B
TypeScript
28 lines
802 B
TypeScript
import { expect } from '@playwright/test';
|
|
import BasePage from '../../Base';
|
|
import { FormPage } from '../Form';
|
|
import { GalleryPage } from '../Gallery';
|
|
import { GridPage } from '../Grid';
|
|
import { KanbanPage } from '../Kanban';
|
|
|
|
export class QrCodeOverlay extends BasePage {
|
|
constructor(parent: GridPage | GalleryPage | KanbanPage | FormPage) {
|
|
super(parent.rootPage);
|
|
}
|
|
|
|
get() {
|
|
return this.rootPage.locator(`.nc-qr-code-large`);
|
|
}
|
|
|
|
async verifyQrValueLabel(expectedValue: string) {
|
|
const foundQrValueLabelText = await this.get()
|
|
.locator('[data-testid="nc-qr-code-large-value-label"]')
|
|
.textContent();
|
|
expect(foundQrValueLabelText).toContain(expectedValue);
|
|
}
|
|
|
|
async clickCloseButton() {
|
|
await this.get().locator('.ant-modal-close-x').click();
|
|
}
|
|
}
|