From c816b02518441b1873e06dda137585127f6f5a66 Mon Sep 17 00:00:00 2001 From: Luiz Motta Date: Tue, 1 Aug 2023 11:11:14 -0300 Subject: [PATCH] Clean up tests --- .../e2e/expressions/contextExpression.spec.ts | 84 ------------------- .../expressions/expressionContainer.spec.ts | 8 -- .../boxed-expression-component/package.json | 2 +- 3 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 packages/boxed-expression-component/e2e/expressions/expressionContainer.spec.ts diff --git a/packages/boxed-expression-component/e2e/expressions/contextExpression.spec.ts b/packages/boxed-expression-component/e2e/expressions/contextExpression.spec.ts index 672df123126..f82050b87f9 100644 --- a/packages/boxed-expression-component/e2e/expressions/contextExpression.spec.ts +++ b/packages/boxed-expression-component/e2e/expressions/contextExpression.spec.ts @@ -190,88 +190,4 @@ test.describe("Context Expression", () => { 120 ); }); - - test("add literal expression", async ({ expressionSelector }) => { - await expressionSelector.literalExpression( - expressionSelector.getBee(page).getByRole("row", { name: "ContextEntry-1 () Select expression" }) - ); - - await expect(expressionSelector.getBee(page).getByRole("cell", { name: "=" })).toBeAttached(); - await expect(expressionSelector.getBee(page).getByRole("cell", { name: "=" })).toContainText(""); - - await expressionSelector.getBee(page).getByTestId("monaco-container").click(); - await expressionSelector.getBee(page).getByTestId("monaco-container").type('"data"'); - await expressionSelector - .getBee(page) - .getByRole("textbox", { name: "Editor content;Press Alt+F1 for Accessibility Options." }) - .press("Enter"); - - await expect(expressionSelector.getBee(page).getByRole("cell", { name: "=" })).toContainText('"data"'); - }); - - // add a context expression - test("add a context expression", async ({ expressionSelector }) => { - await expressionSelector.contextExpression( - expressionSelector.getBee(page).getByRole("row", { name: "ContextEntry-1 () Select expression" }) - ); - const nestedContextExpression = expressionSelector - .getBee(page) - .getByRole("row", { name: "ContextEntry-1 ()" }); - - // await expect(nestedContextExpression.getByRole("cell", { name: "{} Context" })).toBeAttached(); - // await expect(nestedContextExpression.getByRole("cell", { name: "ContextEntry-1 ()" })).toBeAttached(); - - // await nestedContextExpression.getByText("ContextEntry-1", { exact: true }).click(); - // await expressionSelector.page.getByPlaceholder("Expression Name").press("Control+a"); - // await expressionSelector.page.getByPlaceholder("Expression Name").fill("My Entry"); - // await expressionSelector.page.getByRole("button", { name: "Options menu" }).click(); - // await expressionSelector.page.getByRole("option", { name: "boolean" }).click(); - // await expressionSelector.page.getByRole("button", { name: "Options menu" }).press("Enter"); - - // const newNestedContextExpression = expressionSelector - // .getBee(page) - // .getByRole("row", { name: "My Entry (boolean) Select expression", exact: true }); - // await expressionSelector.selectLiteralExpression(newNestedContextExpression); - - // await expressionSelector.page.getByTestId("monaco-container").click(); - // await expressionSelector.page.getByTestId("monaco-container").type('"data"'); - // await expressionSelector.page - // .getByRole("textbox", { name: "Editor content;Press Alt+F1 for Accessibility Options." }) - // .press("Enter"); - - // await expect(expressionSelector.getBee(page).getByRole('cell', { name: '= "data" "data"', exact: true })).toBeAttached(); - }); - - // // add a decision table expression - // test("add a decision table expression", async ({ expressionSelector }) => {}); - - // // add a relation expression - // test("add a relation expression", async ({ expressionSelector }) => {}); - - // // add a function expression - // test("add a function expression", async ({ expressionSelector }) => {}); - - // // add a invocation expression - // test("add an invocation expression", async ({ expressionSelector }) => {}); - - // // add a list expression - // test("add a list expression", async ({ expressionSelector }) => {}); - - // // add a result expression - // test("Context Expression", async ({ expressionSelector }) => {}); - - // // reset a expression - // test("Context Expression", async ({ expressionSelector }) => {}); - - // // paste a expression ONLY FOR chromiumn - // test("Context Expression", async ({ expressionSelector }) => {}); - - // // resize - // test("Context Expression", async ({ expressionSelector }) => {}); - - // // reset resize - // test("Context Expression", async ({ expressionSelector }) => {}); - - // // add a two rows expression and resize - // test("Context Expression", async ({ expressionSelector }) => {}); }); diff --git a/packages/boxed-expression-component/e2e/expressions/expressionContainer.spec.ts b/packages/boxed-expression-component/e2e/expressions/expressionContainer.spec.ts deleted file mode 100644 index e6c9b92e806..00000000000 --- a/packages/boxed-expression-component/e2e/expressions/expressionContainer.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Tests Summary - * Expression Container - * - * Add expression - * Add expression and reset - * Add expression and reset and add new expression - */ diff --git a/packages/boxed-expression-component/package.json b/packages/boxed-expression-component/package.json index f81f66bcae5..c9fd6d2ea00 100644 --- a/packages/boxed-expression-component/package.json +++ b/packages/boxed-expression-component/package.json @@ -17,7 +17,7 @@ "start": "webpack serve -c ./dev-webapp/webpack.config.js --host 0.0.0.0 --env dev", "storybook": "storybook dev -p 6006", "test": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"jest --silent --verbose --passWithNoTests\"", - "test:e2e": "run-script-if --ignore-errors \"$(build-env integrationTests.ignoreFailures)\" --bool \"$(build-env integrationTests.run)\" --then \"pnpm rimraf ./dist-tests\" \"pnpm playwright install --with-deps\" \"pnpm test:e2e:run\"", + "test:e2e": "run-script-if --ignore-errors \"$(build-env integrationTests.ignoreFailures)\" --bool \"$(build-env integrationTests.run)\" --then \"pnpm rimraf ./dist-tests\" \"pnpm test:e2e:run\"", "test:e2e:open": "pnpm exec playwright show-report dist-tests/reporter", "test:e2e:run": "pnpm exec playwright test" },