PromucFlow_constructor/app/client/cypress
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
..
e2e fix: cypress test for multipart/form-data (#39356) 2025-02-19 09:28:39 +00:00
fixtures fix: Fix the api_multipart spec test case (#39249) 2025-02-13 20:22:39 +05:30
locators chore: update select component (#38954) 2025-02-06 13:10:25 +05:30
patches
plugins chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
scripts ci: CI update for commitMsg (#39254) 2025-02-13 19:59:11 +05:30
snapshots/Regression/ClientSide fix: fix for js visual spec snapshots (#39154) 2025-02-10 19:41:52 +05:30
support chore: Code split for logout success handler (#39296) 2025-02-18 12:19:05 +05:30
.eslintrc.json chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
apply-patches.js
Dockerfile chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
index.ts
init-mssql-dump-for-test.sql
init-mysql-dump-for-test.sql
init-pg-dump-for-test.sql
limited-tests.txt fix: fix for js visual spec snapshots (#39154) 2025-02-10 19:41:52 +05:30
setup-test-ci.sh chore: Logs and potential fix for CI startup flakiness (#34461) 2024-06-25 14:03:56 +05:30
tags.js test: Add cypress tests for Snowflake datasource functionalities (#39029) 2025-02-07 11:03:18 +05:30
test.sh
tsconfig.json chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
xataadd.sh
xatadel.sh