mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 05:35:41 +00:00
feat(testing): Improved stabilty
This commit is contained in:
@@ -225,7 +225,6 @@ export class GridPage extends BasePage {
|
||||
}
|
||||
|
||||
async clickPagination({ page }: { page: string }) {
|
||||
(await this.pagination({ page })).click();
|
||||
await this.waitForResponse({
|
||||
uiAction: (await this.pagination({ page })).click(),
|
||||
httpMethodsToMatch: ["GET"],
|
||||
|
||||
@@ -84,9 +84,13 @@ export class CellPageObject extends BasePage {
|
||||
columnHeader: string;
|
||||
}) {
|
||||
await this.get({ index, columnHeader }).hover();
|
||||
await this.get({ index, columnHeader })
|
||||
.locator(".nc-action-icon >> nth=0")
|
||||
.click();
|
||||
await this.waitForResponse({
|
||||
uiAction: this.get({ index, columnHeader })
|
||||
.locator(".nc-action-icon >> nth=0")
|
||||
.click(),
|
||||
requestUrlPathToMatch: '/api/v1/db/data/noco/',
|
||||
httpMethodsToMatch: ['GET'],
|
||||
})
|
||||
}
|
||||
|
||||
async inCellAdd({
|
||||
|
||||
@@ -11,6 +11,8 @@ import {
|
||||
let roles = ["Editor", "Commenter", "Viewer"];
|
||||
|
||||
test.describe("Preview Mode", () => {
|
||||
test.setTimeout(150000);
|
||||
|
||||
let dashboard: DashboardPage;
|
||||
let toolbar: ToolbarPage;
|
||||
let settings: SettingsPage;
|
||||
@@ -24,7 +26,7 @@ test.describe("Preview Mode", () => {
|
||||
settings = dashboard.settings;
|
||||
});
|
||||
|
||||
test("Test case name", async () => {
|
||||
test("Preview Mode", async () => {
|
||||
// close 'Team & Auth' tab
|
||||
await dashboard.closeTab({ title: "Team & Auth" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user