mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:26:10 +00:00
feat(testing): Added prod build of front end
This commit is contained in:
@@ -203,7 +203,12 @@ export class ColumnPageObject extends BasePage {
|
||||
}
|
||||
|
||||
async save({ isUpdated }: { isUpdated?: boolean } = {}) {
|
||||
await this.get().locator('button:has-text("Save")').click();
|
||||
await this.waitForResponse({
|
||||
uiAction: this.get().locator('button:has-text("Save")').click(),
|
||||
requestUrlPathToMatch: 'api/v1/db/data/noco/',
|
||||
httpMethodsToMatch: ['GET'],
|
||||
responseJsonMatcher: (json) => json['pageInfo'],
|
||||
});
|
||||
|
||||
await this.toastWait({
|
||||
message: isUpdated ? "Column updated" : "Column created",
|
||||
|
||||
@@ -157,6 +157,11 @@ export class ProjectsPage extends BasePage {
|
||||
await projRow.locator(".nc-action-btn").nth(0).click();
|
||||
await project.locator("input.nc-metadb-project-name").fill(newTitle);
|
||||
// press enter to save
|
||||
await project.locator("input.nc-metadb-project-name").press("Enter");
|
||||
const submitAction = project.locator("input.nc-metadb-project-name").press("Enter");
|
||||
await this.waitForResponse({
|
||||
uiAction: submitAction,
|
||||
requestUrlPathToMatch: 'api/v1/db/meta/projects/',
|
||||
httpMethodsToMatch: ['PATCH'],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user