fix(keypairListComponent): update input ids to include "editNode" prefix when editNode prop is true
fix(genericModal): add data-testid to save button for easier testing fix(sideBarDraggableComponent): add data-testid to div element for easier testing fix(nodeToolbarComponent): add empty fragment as ConfirmationModal.Trigger to fix warning fix(types): add editNodeModal property to KeyPairListComponentType fix(codeAreaModalComponent.spec): update locator for Python Function Tool fix(floatComponent.spec): update locator for Python Function Tool fix(intComponent.spec): update locator for GET Request Tool fix(keyPairListComponent.spec): update locator for CSV Loader Tool fix(promptModalComponent.spec): update locator for Prompt Template Tool
This commit is contained in:
parent
7e4dd16881
commit
4f1d0b4683
10 changed files with 57 additions and 37 deletions
|
|
@ -13,7 +13,7 @@ test("CodeAreaModalComponent", async ({ page }) => {
|
|||
await page.waitForTimeout(2000);
|
||||
|
||||
await page
|
||||
.locator('//*[@id="sidePythonFunctionTool"]')
|
||||
.getByTestId("toolsPythonFunctionTool")
|
||||
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
||||
await page.mouse.up();
|
||||
await page.mouse.down();
|
||||
|
|
@ -34,8 +34,9 @@ test("CodeAreaModalComponent", async ({ page }) => {
|
|||
await page
|
||||
.locator('//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div')
|
||||
.click();
|
||||
await page.locator('//*[@id="advancedIcon"]').click();
|
||||
await page.locator('//*[@id="editAdvancedBtn"]').click();
|
||||
await page.getByTestId("genericModalBtnSave").click();
|
||||
await page.getByTestId("more-options-modal").click();
|
||||
await page.getByTestId("edit-button-modal").click();
|
||||
|
||||
await page.locator('//*[@id="showcode"]').click();
|
||||
expect(await page.locator('//*[@id="showcode"]').isChecked()).toBeFalsy();
|
||||
|
|
@ -114,8 +115,8 @@ test("CodeAreaModalComponent", async ({ page }) => {
|
|||
await page
|
||||
.locator('//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div')
|
||||
.click();
|
||||
await page.locator('//*[@id="advancedIcon"]').click();
|
||||
await page.locator('//*[@id="editAdvancedBtn"]').click();
|
||||
await page.getByTestId("more-options-modal").click();
|
||||
await page.getByTestId("edit-button-modal").click();
|
||||
|
||||
await page.locator('//*[@id="showcode"]').click();
|
||||
expect(await page.locator('//*[@id="showcode"]').isChecked()).toBeTruthy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue