Skip to content

Commit

Permalink
Merge branch 'release' of github.com:appsmithorg/appsmith into chore/…
Browse files Browse the repository at this point in the history
…git-pkg-5
  • Loading branch information
brayn003 committed Feb 19, 2025
2 parents 42730f0 + af6540f commit 820025a
Showing 1 changed file with 4 additions and 2 deletions.
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 All @@ -111,7 +113,7 @@ describe(
apiPage.EnterBodyFormData(
"MULTIPART_FORM_DATA",
"file",
"{{FilePicker1.files[0]}}",
"{{FilePicker1.files[0].data}}",
"File",
);

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 820025a

Please sign in to comment.