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.
* 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.
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.