feat(testing): Cleanup and disabled webhook test

This commit is contained in:
Muhammed Mustafa
2022-10-25 14:14:27 +05:30
parent bc398405e1
commit 9c25f0f665
6 changed files with 1 additions and 13 deletions

View File

@@ -101,7 +101,6 @@ export class ExpandedFormPage extends BasePage {
}
async validateRoleAccess(param: { role: string }) {
console.log(param.role);
if (param.role === "commenter" || param.role === "viewer") {
expect(
await this.get().locator('button:has-text("Save Row")')

View File

@@ -18,7 +18,6 @@ export class ImportAirtablePage extends BasePage {
}
async import({ key, baseId }: { key: string; baseId: string }) {
console.log(key, baseId);
await this.get().locator(`.nc-input-api-key >> input`).fill(key);
await this.get().locator(`.nc-input-shared-base`).fill(baseId);
await this.importButton.click();

View File

@@ -175,8 +175,6 @@ export class CellPageObject extends BasePage {
}
async verifyRoleAccess(param: { role: string }) {
console.log("verifyRoleAccess", param);
// normal text cell
const cell = await this.get({ index: 0, columnHeader: "Country" });
// editable cell

View File

@@ -176,7 +176,6 @@ export class DashboardPage extends BasePage {
let menu = await this.rootPage
.locator(`.nc-new-project-menu`)
.textContent();
console.log(title, menu);
expect(title).toContain(param.json.title.myProject);
expect(menu).toContain(param.json.title.newProj);
await this.rootPage

View File

@@ -11,7 +11,6 @@ test.describe("Shared base", () => {
let loginPage: LoginPage;
async function roleTest(role: string) {
console.log("project menu");
await dashboard.validateProjectMenu({
role: role.toLowerCase(),
mode: "shareBase",
@@ -19,29 +18,24 @@ test.describe("Shared base", () => {
await dashboard.treeView.openTable({ title: "Country", mode: "shareBase" });
console.log("shareBase: view sidebar");
await dashboard.viewSidebar.validateRoleAccess({
role: role.toLowerCase(),
});
console.log("shareBase: toolbar");
await toolbar.validateRoleAccess({
role: role.toLowerCase(),
mode: "shareBase",
});
console.log("shareBase: tree view");
await dashboard.treeView.validateRoleAccess({
role: role.toLowerCase(),
});
console.log("shareBase: grid");
await dashboard.grid.validateRoleAccess({
role: role.toLowerCase(),
});
await dashboard.grid.openExpandedRow({ index: 0 });
console.log("shareBase: expanded row");
await dashboard.expandedForm.validateRoleAccess({
role: role.toLowerCase(),
});

View File

@@ -23,12 +23,11 @@ async function verifyHookTrigger(count: number, value: string, request) {
if (count) {
response = await request.get(hookPath + "/last");
console.log(await response.json());
expect((await response.json()).Title).toBe(value);
}
}
test.describe("Webhook", () => {
test.describe.skip("Webhook", () => {
let dashboard: DashboardPage, toolbar: ToolbarPage, webhook: WebhookFormPage;
let context: any;