|
|
|
@ -1,17 +1,14 @@
|
|
|
|
|
import { test } from "@playwright/test"; |
|
|
|
|
import { expect } from "@playwright/test"; |
|
|
|
|
import { DashboardPage } from "../pages/Dashboard"; |
|
|
|
|
import { SettingsPage } from "../pages/Dashboard/Settings"; |
|
|
|
|
import setup from "../setup"; |
|
|
|
|
|
|
|
|
|
test.describe.only("Relational Columns", () => { |
|
|
|
|
let dashboard: DashboardPage, settings: SettingsPage; |
|
|
|
|
test.describe("Relational Columns", () => { |
|
|
|
|
let dashboard: DashboardPage; |
|
|
|
|
let context: any; |
|
|
|
|
|
|
|
|
|
test.beforeEach(async ({ page }) => { |
|
|
|
|
context = await setup({ page }); |
|
|
|
|
dashboard = new DashboardPage(page, context.project); |
|
|
|
|
settings = new SettingsPage(page); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test("Belongs To", async () => { |
|
|
|
@ -19,8 +16,8 @@ test.describe.only("Relational Columns", () => {
|
|
|
|
|
await dashboard.closeTab({ title: "Team & Auth" }); |
|
|
|
|
await dashboard.treeView.openTable({ title: "Country" }); |
|
|
|
|
|
|
|
|
|
const cell = await dashboard.grid.cell.get({ |
|
|
|
|
index: 0, |
|
|
|
|
const firstCell = await dashboard.grid.cell.get({ |
|
|
|
|
index: 1, |
|
|
|
|
columnHeader: "City List", |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -30,7 +27,9 @@ test.describe.only("Relational Columns", () => {
|
|
|
|
|
await dashboard.grid.cell.verify({ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: "City List", |
|
|
|
|
value: "Kabul", |
|
|
|
|
value: ["Kabul"], |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|