test(refactor): class name correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-10-18 21:36:58 +05:30
committed by Muhammed Mustafa
parent 00bec30fc8
commit 50e88aa594
17 changed files with 229 additions and 115 deletions

View File

@@ -1,9 +1,10 @@
import { test } from "@playwright/test";
import { DashboardPage } from "../pages/Dashboard";
import setup from "../setup";
import { ToolbarPage } from "../pages/Dashboard/Toolbar";
test.describe.only("Toolbar operations (GRID)", () => {
let dashboard: DashboardPage;
test.describe("Toolbar operations (GRID)", () => {
let dashboard: DashboardPage, toolbar: ToolbarPage;
let context: any;
async function validateFirstRow(value: string) {
@@ -17,6 +18,7 @@ test.describe.only("Toolbar operations (GRID)", () => {
test.beforeEach(async ({ page }) => {
context = await setup({ page });
dashboard = new DashboardPage(page, context.project);
toolbar = dashboard.toolbar;
});
test("Hide, Sort, Filter", async () => {
@@ -24,7 +26,6 @@ test.describe.only("Toolbar operations (GRID)", () => {
await dashboard.closeTab({ title: "Team & Auth" });
await dashboard.treeView.openTable({ title: "Country" });
const toolbar = dashboard.grid.toolbar;
await dashboard.grid.column.verify({
title: "LastUpdate",