Commit graph

9 commits

Author SHA1 Message Date
Maharshi Patel
5afbdc5a83 chore: typo and replace cy.visit with cy.new_form 2023-10-18 17:26:52 +05:30
Maharshi Patel
86f0fdc5be fix: cypress add test for attach before doc save
added cypress test where attachment is added
before mandatory fields are filled so doc save will fail once
and then succeed after mandatory fields are filled then check if file is
attached to correct document and no orphaned files exist for that doc.
2023-10-18 16:15:02 +05:30
Maharshi Patel
1d4936b7e2 fix: cypress attach control library button
*   As on clear of attach field file is deleted as well
    in `Checking functionality for "Link"` test.

*   Instead of assuming that file is present from previous test.

*   create a new doc and attach a file (link) to it.
    then create another doc and check library button functionality
    and then delete both docs.
2023-10-18 12:35:52 +05:30
Maharshi Patel
a67f1fafcd fix: cypress tests as per new hash naming
Some Cypress Tests are using hardcoded numbers in them.
As new naming is based on random hash i have changed them accordingly.
2023-10-17 20:58:50 +05:30
Maharshi Patel
cb7415338a fix: sidebar UX, sidebar & attach control cypress
* changed "show all" to button
* updated cypress tests for sidebar and attach control
* change "Explore Files" button icon location
2023-09-28 23:35:01 +05:30
Dirk van der Laarse
6645589cdf chore: linting fixes 2023-07-30 15:48:03 +00:00
Dirk van der Laarse
4ee5c015c3 feat: setting for force web capture mode for camera uploads 2023-06-14 12:45:49 +00:00
Ankush Menat
40f27f908a style: format JS files with prettier 2022-08-04 14:51:01 +05:30
Komal-Saraf0609
02286e4e6f
test: Added test script for control type "Attach" (#16355)
Adding automation test script for control/fieldtype "Attach".

The above test script does the following testing:

1. Creating a new doctype with attach fieldtype.
2. Attaching a new image using the "Link" option from the options which the "Attach" button offers.
3. Checking if the URL of the attached image is getting displayed in the field of the newly created doctype.
4. Checking if the clicking on the "Clear" button clears the text in the field and again displays the "Attach" button.
5. Doing all the above testing by using the "Library" option from the options which the "Attach" button offers.
2022-04-08 13:42:58 +00:00