feat(testing): Improved stabilty

This commit is contained in:
Muhammed Mustafa
2022-10-27 22:01:42 +05:30
parent 44becac807
commit 5706197382
3 changed files with 10 additions and 5 deletions

View File

@@ -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"],

View File

@@ -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({

View File

@@ -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" });