✨ (deleteComponentFlows.spec.ts): add steps to save API Key before deleting a flow to ensure proper authentication

✨ (deleteComponentFlows.spec.ts): update confirmation message selector to match the updated text
✨ (nestedComponent.spec.ts): update selector to click on "New Project" button
♻️ (nestedComponent.spec.ts): remove redundant code for clicking on "showpinecone_env" checkbox
♻️ (nestedComponent.spec.ts): remove redundant code for clicking on "showpinecone_env" checkbox
♻️ (nestedComponent.spec.ts): remove redundant code for clicking on "showpinecone_env" checkbox
♻️ (nestedComponent.spec.ts): remove redundant code for clicking on "showpinecone_env" checkbox
♻️ (saveComponents.spec.ts): update selector to click on "New Project" button
♻️ (saveComponents.spec.ts): remove redundant code for clicking on "title-PythonFunctionTool" element
♻️ (saveComponents.spec.ts): remove redundant code for clicking on "title-ChatOpenAI" element
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable instead of hardcoding it
♻️ (store.spec.ts): update API Key placeholder value to use environment variable

✅ (tweaks_test.spec.ts): update selectors to use getByText instead of locator for better readability and maintainability
This commit is contained in:
cristhianzl 2024-05-20 16:35:09 -03:00
commit 7f4bd9779d
5 changed files with 26 additions and 57 deletions

View file

@ -4,6 +4,14 @@ test("shoud delete a flow", async ({ page }) => {
await page.goto("/");
await page.waitForTimeout(2000);
await page.getByText("Store").nth(0).click();
await page.getByText("API Key", { exact: true }).click();
await page
.getByPlaceholder("Insert your API Key", { exact: true })
.fill(process.env.STORE_API_KEY ?? "");
await page.getByText("Save").last().click();
await page.waitForTimeout(8000);
await page.getByTestId("install-Website Content QA").click();
await page.waitForTimeout(5000);
await page.getByText("My Collection").nth(0).click();
@ -16,7 +24,9 @@ test("shoud delete a flow", async ({ page }) => {
await page.getByTestId("icon-Trash2").first().click();
await page.waitForTimeout(2000);
});
await page.getByText("Confirm deletion of component?").isVisible();
await page
.getByText("Are you sure you want to delete the selected component?")
.isVisible();
await page.getByText("Delete").nth(1).click();
await page.waitForTimeout(1000);
await page.getByText("Successfully").first().isVisible();
@ -39,7 +49,9 @@ test("shoud delete a component", async ({ page }) => {
await page.getByTestId("icon-Trash2").first().click();
await page.waitForTimeout(2000);
});
await page.getByText("Confirm deletion of component?").isVisible();
await page
.getByText("Are you sure you want to delete the selected component?")
.isVisible();
await page.getByText("Delete").nth(1).click();
await page.waitForTimeout(1000);
await page.getByText("Successfully").first().isVisible();