fix: iomodal and folders api calls (#3661)

* Fixed IOModal calling getMessages again

* Fixed folders API being called twice

* removed unused imports

* Re-added query of get messages and changed to enable query when open

* Fix auto login off test
This commit is contained in:
Lucas Oliveira 2024-09-03 14:29:35 -03:00 • committed by GitHub
commit 27ad129049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 21 deletions

View file

@ -1,5 +1,4 @@
import { expect, test } from "@playwright/test";
import { before, beforeEach } from "node:test";
test("when auto_login is false, admin can CRUD user's and should see just your own flows", async ({
page,
@ -144,7 +143,7 @@ test("when auto_login is false, admin can CRUD user's and should see just your o
await page.getByTestId("icon-ChevronLeft").first().click();
await page.waitForSelector('[id="new-project-btn"]', {
await page.waitForSelector('[data-testid="search-store-input"]:enabled', {
timeout: 30000,
});
@ -214,9 +213,14 @@ test("when auto_login is false, admin can CRUD user's and should see just your o
await page.getByTestId("icon-ChevronLeft").first().click();
await page.waitForSelector('[data-testid="search-store-input"]:enabled', {
timeout: 30000,
});
expect(
await page.getByText(secondRandomFlowName, { exact: true }).isVisible(),
).toBe(true);
expect(
await page.getByText(randomFlowName, { exact: true }).isVisible(),
).toBe(false);
@ -236,7 +240,7 @@ test("when auto_login is false, admin can CRUD user's and should see just your o
timeout: 30000,
});
await page.waitForSelector('[id="new-project-btn"]', {
await page.waitForSelector('[data-testid="search-store-input"]:enabled', {
timeout: 30000,
});