mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 02:45:28 +00:00
feat(testing): Cleanup and disabled webhook test
This commit is contained in:
@@ -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")')
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user