feat(testing): Stability

This commit is contained in:
Muhammed Mustafa
2022-11-02 16:27:52 +05:30
parent c81ef83c18
commit b2b25549c3
3 changed files with 4 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ export class WebhookFormPage extends BasePage {
const modal = await this.get().locator(`.menu-filter-dropdown`).last();
await modal.locator(`button:has-text("Add Filter")`).click();
// todo: Integrate this with Filter page object or atleast wait for the api response(this part is flaky but barely)
await modal.locator(".nc-filter-field-select").click();
const modalField = await this.dashboard.rootPage.locator(
".nc-dropdown-toolbar-field-list:visible"

View File

@@ -64,6 +64,7 @@ test.describe("Shared base", () => {
let url = await dashboard.settings.teams.getSharedBaseUrl();
await dashboard.settings.teams.closeInvite();
await dashboard.rootPage.waitForTimeout(2000);
// access shared base link
await dashboard.signOut();
// todo: Move this to a page object
@@ -85,6 +86,7 @@ test.describe("Shared base", () => {
url = await dashboard.settings.teams.getSharedBaseUrl();
await dashboard.settings.teams.closeInvite();
await dashboard.rootPage.waitForTimeout(2000);
// access shared base link
await dashboard.signOut();
// todo: Move this to a page object

View File

@@ -4,6 +4,7 @@ import { SettingTab } from "../pages/Dashboard/Settings";
import setup from "../setup";
import { FormPage } from "../pages/Dashboard/Form";
// todo: Move most of the ui actions to page object and await on the api response
test.describe("Form view", () => {
let dashboard: DashboardPage;
let form: FormPage;