Merge branch 'cz/fixTestsIo' into zustand/io/migration

This commit is contained in:
cristhianzl 2024-02-23 17:31:33 -03:00
commit dde6fd6d62
4 changed files with 6 additions and 6 deletions

View file

@ -76,7 +76,7 @@
"zustand": "^4.4.7"
},
"devDependencies": {
"@playwright/test": "^1.38.0",
"@playwright/test": "^1.41.2",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.80",
"@tailwindcss/typography": "^0.5.9",

View file

@ -98,7 +98,7 @@
},
"proxy": "http://127.0.0.1:7860",
"devDependencies": {
"@playwright/test": "^1.38.0",
"@playwright/test": "^1.41.2",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.80",
"@tailwindcss/typography": "^0.5.9",

View file

@ -15,7 +15,6 @@ import {
import { TypeModal } from "../../constants/enums";
import { postValidatePrompt } from "../../controllers/API";
import useAlertStore from "../../stores/alertStore";
import useFlowStore from "../../stores/flowStore";
import { genericModalPropsType } from "../../types/components";
import { handleKeyDown } from "../../utils/reactflowUtils";
import { classNames, varHighlightHTML } from "../../utils/utils";
@ -47,7 +46,6 @@ export default function GenericModal({
const textRef = useRef<HTMLTextAreaElement>(null);
const divRef = useRef(null);
const divRefPrompt = useRef(null);
const unselectAll = useFlowStore((state) => state.unselectAll);
function checkVariables(valueToCheck: string): void {
const regex = /\{([^{}]+)\}/g;
@ -91,7 +89,6 @@ export default function GenericModal({
useEffect(() => {
setInputValue(value);
unselectAll();
}, [value, modalOpen]);
const coloredContent = (inputValue || "")

View file

@ -18,7 +18,8 @@ test("CodeAreaModalComponent", async ({ page }) => {
await page.mouse.up();
await page.mouse.down();
await page.locator('//*[@id="code-input-0"]').click();
await page.getByTestId("div-generic-node").click();
await page.getByTestId("code-button-modal").click();
let value = await page.locator('//*[@id="codeValue"]').inputValue();
@ -31,6 +32,8 @@ test("CodeAreaModalComponent", async ({ page }) => {
await page.locator('//*[@id="checkAndSaveBtn"]').click();
await page.getByTestId("div-generic-node").click();
await page.getByTestId("more-options-modal").click();
await page.getByTestId("edit-button-modal").click();