mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 05:26:53 +00:00
36 lines
844 B
TypeScript
36 lines
844 B
TypeScript
import BasePage from '../../Base';
|
|
import { GridPage } from './index';
|
|
|
|
export class ExpandTablePageObject extends BasePage {
|
|
readonly grid: GridPage;
|
|
|
|
constructor(grid: GridPage) {
|
|
super(grid.rootPage);
|
|
this.grid = grid;
|
|
}
|
|
|
|
get() {
|
|
return this.rootPage.getByTestId('nc-expand-upsert-modal');
|
|
}
|
|
|
|
async upsert() {
|
|
const expandTableModal = this.get();
|
|
|
|
await expandTableModal.waitFor({ state: 'visible' });
|
|
|
|
await expandTableModal.getByTestId('nc-table-expand-yes').click();
|
|
|
|
await this.rootPage.getByTestId('nc-table-expand').click();
|
|
}
|
|
|
|
async updateOnly() {
|
|
const expandTableModal = this.get();
|
|
|
|
await expandTableModal.waitFor({ state: 'visible' });
|
|
|
|
await expandTableModal.getByTestId('nc-table-expand-no').click();
|
|
|
|
await this.rootPage.getByTestId('nc-table-expand').click();
|
|
}
|
|
}
|