PromucFlow_constructor/app/client/cypress/e2e/Regression/ServerSide/ApiTests
Nilansh Bansal af6540fc85
fix: cypress test for multipart/form-data (#39356)
## Description
> This PR fixes the cypress test for API multipart/form-data when the
FilePicker is selected as Base64

We have updated the cypress test to use `{{FilePicker1.files[0].data}}`
instead of `{{FilePicker1.files[0]}}`, this is because for base64 type
file picker we have to use `.data` property to make the file upload work
successfully.
Earlier, while the cypress test was passing with
{{FilePicker1.files[0]}} but the uploaded image was corrupted (please
check the screen recording below).


https://github.com/user-attachments/assets/c8cf07a1-db1c-4065-913a-00d544fe7e2b




Fixes #39354 

## Automation

/ok-to-test tags="@tag.Datasource"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> 🟣 🟣 🟣 Your tests are running.
> Tests running at:
<https://github.com/appsmithorg/appsmith/actions/runs/13408509228>
> Commit: 7b2360f4c5967d6082a442ed2eba15d6348dad6b
> Workflow: `PR Automation test suite`
> Tags: `@tag.Datasource`
> Spec: ``
> <hr>Wed, 19 Feb 2025 08:40:23 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Tests**
  - Updated file upload tests to properly validate file data extraction.
- Added a test scenario for adding new pages to enhance page management
verification.
- Revised page selection during tests for more accurate validation
outcomes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-19 09:28:39 +00:00
..
API_Additional_Tests_spec.ts test: Editor tests for renaming, copying, moving, and deleting APIs (#38896) 2025-01-30 14:31:20 +05:30
API_All_Verb_spec.js chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
API_Auto_Generated_Header_spec.ts chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_Bug_Upload_File_GreaterThan_20MB_spec.ts chore: Skipping case due to Issue38156 (#38628) 2025-01-13 19:14:02 +05:30
API_Bugs_Spec.js chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
API_ContextMenu_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_CurlPOSTImport_spec.js feat: Enable new toolbar for cypress (#37148) 2024-12-03 09:21:43 +05:30
API_DefaultContentType_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_Edit_spec.js fix: fix url evaluation (#38380) 2024-12-27 08:44:16 +05:30
API_EvaluatedValue_spec.ts chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_MultiPart_Spec.ts fix: cypress test for multipart/form-data (#39356) 2025-02-19 09:28:39 +00:00
API_Mustache_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_RequestBody_spec.ts chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_Response_View_spec.js feat: unified response view component (#37897) 2024-12-10 10:06:57 +03:00
API_RunValidations_spec.ts chore: Skip case due to open bug (#38930) 2025-01-31 10:13:19 +05:30
API_Search_spec.js feat: unified response view component (#37897) 2024-12-10 10:06:57 +03:00
API_Styles_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_TestExecuteWithDynamicBindingInUrl_spec.ts chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
API_Unique_name_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
Api_XSS_Vulnerability_spec.ts chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
CurlImportFlow_spec.js chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30