tests: Categorize Tests into CI and Scheduled Groups (#3391)
* categoring tests * ✨ (actionsMainPage-shard-1.spec.ts): Add end-to-end tests for selecting and deleting items, searching flows, and searching components on the main page to ensure proper functionality and user experience. * 📝 (frontend/tsconfig.json): update file paths in include section to match the correct directory structure for scheduled-end-to-end tests. * 🔧 (typescript_test.yml): update path in the command to change directory to run end-to-end tests in the frontend folder 📝 (typescript_test.yml): improve comments for better readability and understanding of the workflow logic * add yml configuration to choose folder to run CI * 🔧 (ci.yml): Fix formatting issues and add support for running tests in a specific folder 📝 (ci.yml): Update job dependencies to improve readability and maintainability of the workflow configuration * ♻️ (typescript_test.yml): refactor matrix values for shardIndex and shardTotal to reduce redundancy and improve readability * categoring tests * ✨ (actionsMainPage-shard-1.spec.ts): Add end-to-end tests for selecting and deleting items, searching flows, and searching components on the main page to ensure proper functionality and user experience. * 📝 (frontend/tsconfig.json): update file paths in include section to match the correct directory structure for scheduled-end-to-end tests. * 🔧 (typescript_test.yml): update path in the command to change directory to run end-to-end tests in the frontend folder 📝 (typescript_test.yml): improve comments for better readability and understanding of the workflow logic * add yml configuration to choose folder to run CI * 🔧 (ci.yml): Fix formatting issues and add support for running tests in a specific folder 📝 (ci.yml): Update job dependencies to improve readability and maintainability of the workflow configuration * ♻️ (typescript_test.yml): refactor matrix values for shardIndex and shardTotal to reduce redundancy and improve readability * 🐛 (fileUploadComponent.spec.ts): fix file path for file upload to correctly locate the test file in the assets folder * changing test_folder * ✨ (fileUploadComponent.spec.ts): update file path for file upload test to match new file location in the project structure * fix input on playwright command
This commit is contained in:
parent
0d60fbf3e7
commit
a5cdab68bb
42 changed files with 65 additions and 59 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("RetrievalQA - Tooltip", async ({ page }) => {
|
||||
test("user must see on handle hover a tooltip with possibility connections", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("LLMChain - Filter", async ({ page }) => {
|
||||
test("user must see on handle click the possibility connections - LLMChain", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("GlobalVariables", async ({ page }) => {
|
||||
test("user must be able to save or delete a global variable", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
import * as dotenv from "dotenv";
|
||||
import { readFileSync } from "fs";
|
||||
import path from "path";
|
||||
|
||||
test("user must interact with chat with Input/Output", async ({ page }) => {
|
||||
|
|
@ -47,7 +47,9 @@ test("should be able to upload a file", async ({ page }) => {
|
|||
const fileChooserPromise = page.waitForEvent("filechooser");
|
||||
await page.getByTestId("icon-FileSearch2").click();
|
||||
const fileChooser = await fileChooserPromise;
|
||||
await fileChooser.setFiles(path.join(__dirname, "/assets/test_file.txt"));
|
||||
await fileChooser.setFiles(
|
||||
path.join(__dirname, "../end-to-end/assets/test_file.txt"),
|
||||
);
|
||||
await page.getByText("test_file.txt").isVisible();
|
||||
|
||||
await page.getByPlaceholder("Search").click();
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("RetrievalQA - Filter", async ({ page }) => {
|
||||
test("user must see on handle click the possibility connections - RetrievalQA", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
|
|
@ -25,38 +25,38 @@
|
|||
"include": [
|
||||
"src",
|
||||
"tests/end-to-end/saveComponents.spec.ts",
|
||||
"tests/end-to-end/actionsMainPage-shard-1.spec.ts",
|
||||
"tests/scheduled-end-to-end/actionsMainPage-shard-1.spec.ts",
|
||||
"tests/end-to-end/auto_login.spec.ts",
|
||||
"tests/end-to-end/chatInputOutput.spec.ts",
|
||||
"tests/end-to-end/chatInputOutputUser-shard-2.spec.ts",
|
||||
"tests/end-to-end/codeAreaModalComponent.spec.ts",
|
||||
"tests/end-to-end/curlApiGeneration.spec.ts",
|
||||
"tests/end-to-end/deleteFlows.spec.ts",
|
||||
"tests/end-to-end/dragAndDrop.spec.ts",
|
||||
"tests/end-to-end/dropdownComponent.spec.ts",
|
||||
"tests/end-to-end/fileUploadComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/chatInputOutput.spec.ts",
|
||||
"tests/scheduled-end-to-end/chatInputOutputUser-shard-2.spec.ts",
|
||||
"tests/scheduled-end-to-end/codeAreaModalComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/curlApiGeneration.spec.ts",
|
||||
"tests/scheduled-end-to-end/deleteFlows.spec.ts",
|
||||
"tests/scheduled-end-to-end/dragAndDrop.spec.ts",
|
||||
"tests/scheduled-end-to-end/dropdownComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/fileUploadComponent.spec.ts",
|
||||
"tests/end-to-end/filterEdge.spec.ts",
|
||||
"tests/end-to-end/floatComponent.spec.ts",
|
||||
"tests/end-to-end/flowPage.spec.ts",
|
||||
"tests/end-to-end/flowSettings.spec.ts",
|
||||
"tests/end-to-end/generalBugs-shard-0.spec.ts",
|
||||
"tests/scheduled-end-to-end/floatComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/flowPage.spec.ts",
|
||||
"tests/scheduled-end-to-end/flowSettings.spec.ts",
|
||||
"tests/scheduled-end-to-end/generalBugs-shard-0.spec.ts",
|
||||
"tests/end-to-end/globalVariables.spec.ts",
|
||||
"tests/end-to-end/group.spec.ts",
|
||||
"tests/end-to-end/folders.spec.ts",
|
||||
"tests/end-to-end/inputComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/folders.spec.ts",
|
||||
"tests/scheduled-end-to-end/inputComponent.spec.ts",
|
||||
"tests/end-to-end/inputListComponent.spec.ts",
|
||||
"tests/end-to-end/intComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/intComponent.spec.ts",
|
||||
"tests/end-to-end/keyPairListComponent.spec.ts",
|
||||
"tests/end-to-end/langflowShortcuts.spec.ts",
|
||||
"tests/scheduled-end-to-end/langflowShortcuts.spec.ts",
|
||||
"tests/end-to-end/nestedComponent.spec.ts",
|
||||
"tests/end-to-end/promptModalComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/promptModalComponent.spec.ts",
|
||||
"tests/end-to-end/python_api_generation.spec.ts",
|
||||
"tests/end-to-end/textAreaModalComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/textAreaModalComponent.spec.ts",
|
||||
"tests/end-to-end/textInputOutput.spec.ts",
|
||||
"tests/end-to-end/toggleComponent.spec.ts",
|
||||
"tests/scheduled-end-to-end/toggleComponent.spec.ts",
|
||||
"tests/end-to-end/tweaks_test.spec.ts",
|
||||
"tests/end-to-end/twoEdges.spec.ts",
|
||||
"tests/end-to-end/userSettings.spec.ts",
|
||||
"tests/scheduled-end-to-end/twoEdges.spec.ts",
|
||||
"tests/scheduled-end-to-end/userSettings.spec.ts",
|
||||
"tests/end-to-end/store.spec.ts",
|
||||
"tests/end-to-end/logs.spec.ts"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue