fix: change access_type to fit new ENUM (#7145)

* ✨ (deploy-dropdown.tsx): Update access_type values to uppercase for consistency and clarity
♻️ (use-patch-update-flow.ts): Refactor access_type values to uppercase for consistency with other files
♻️ (index.ts): Refactor access_type values to uppercase for consistency with other files
🔧 (publish-flow.spec.ts): Remove redundant click event on 'blank-flow' element
🔧 (floatComponent.spec.ts): Add missing click event on 'fit_view' element

* ✅ (publish-flow.spec.ts): fix duplicate click on 'blank-flow' element to prevent unexpected behavior

* 🐛 (Playground/index.tsx): fix access_type comparison to use uppercase "PUBLIC" instead of lowercase "public" for consistency and accuracy

* ✅ (publish-flow.spec.ts): add delays before clicking on elements to ensure proper interaction and prevent race conditions
This commit is contained in:
Cristhian Zanforlin Lousa 2025-03-18 18:26:07 -03:00 • committed by GitHub
commit ff5a49d66f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 18 deletions

View file

@ -60,8 +60,11 @@ test(
await newPage.close();
await page.bringToFront();
// check if deactivate the publishworks
await page.waitForTimeout(500);
await page.getByTestId("publish-button").click();
await page.waitForTimeout(500);
await page.getByTestId("publish-switch").click();
await page.waitForTimeout(500);
await expect(page.getByTestId("rf__wrapper")).toBeVisible();
await expect(page.getByTestId("publish-switch")).toBeChecked({
checked: false,

View file

@ -33,6 +33,8 @@ test(
await page.getByText("Close").last().click();
await page.getByTestId("fit_view").click();
await page.locator('//*[@id="int_int_seed"]').click();
await page.locator('//*[@id="int_int_seed"]').fill("");
await page.locator('//*[@id="int_int_seed"]').fill("3");