mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 00:06:40 +00:00
chore(test): replace uiAction with a callback to trigger it only after initializing network watcher
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -38,10 +38,8 @@ export class ViewSidebarPage extends BasePage {
|
||||
private async createView({ title, locator }: { title: string; locator: Locator }) {
|
||||
await locator.click();
|
||||
await this.rootPage.locator('input[id="form_item_title"]:visible').fill(title);
|
||||
const submitAction = this.rootPage
|
||||
.locator('.ant-modal-content')
|
||||
.locator('button:has-text("Submit"):visible')
|
||||
.click();
|
||||
const submitAction = () =>
|
||||
this.rootPage.locator('.ant-modal-content').locator('button:has-text("Submit"):visible').click();
|
||||
await this.waitForResponse({
|
||||
httpMethodsToMatch: ['POST'],
|
||||
requestUrlPathToMatch: '/api/v1/db/meta/tables/',
|
||||
@@ -128,10 +126,8 @@ export class ViewSidebarPage extends BasePage {
|
||||
.locator(`[data-testid="view-sidebar-view-actions-${title}"]`)
|
||||
.locator('.nc-view-copy-icon')
|
||||
.click();
|
||||
const submitAction = this.rootPage
|
||||
.locator('.ant-modal-content')
|
||||
.locator('button:has-text("Submit"):visible')
|
||||
.click();
|
||||
const submitAction = () =>
|
||||
this.rootPage.locator('.ant-modal-content').locator('button:has-text("Submit"):visible').click();
|
||||
await this.waitForResponse({
|
||||
httpMethodsToMatch: ['POST'],
|
||||
requestUrlPathToMatch: '/api/v1/db/meta/tables/',
|
||||
|
||||
Reference in New Issue
Block a user