Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
NilanshBansal committed Feb 19, 2025
1 parent bdb3b22 commit 7b2360f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import EditorNavigation, {
AppSidebarButton,
AppSidebar,
} from "../../../../support/Pages/EditorNavigation";
import PageList from "../../../../support/Pages/PageList";

describe(
"Validate API request body panel",
Expand Down Expand Up @@ -99,6 +100,7 @@ describe(
});

it("7. Checks MultiPart form data for a File Type upload + Bug 12476", () => {
PageList.AddNewPage();
const imageNameToUpload = "ConcreteHouse.jpg";
agHelper.AddDsl("multiPartFormDataDsl");

Expand Down Expand Up @@ -141,7 +143,7 @@ describe(
EditorNavigation.SelectEntityByName("MultipartAPI", EntityType.Api);

apiPage.ToggleOnPageLoadRun(false); //Bug 12476
EditorNavigation.SelectEntityByName("Page1", EntityType.Page);
EditorNavigation.SelectEntityByName("Page2", EntityType.Page);
deployMode.DeployApp(locators._buttonByText("Select Files"));
agHelper.ClickButton("Select Files");
agHelper.UploadFile(imageNameToUpload);
Expand Down

0 comments on commit 7b2360f

Please sign in to comment.