Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms 11746 allow attaching same file #1201

Merged
merged 3 commits into from Apr 29, 2024

Conversation

rajatofficial
Copy link
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

@github-actions github-actions bot force-pushed the FORMS-11746-allow_attaching_same_file branch from a27a742 to 7846c9a Compare April 23, 2024 06:00
@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 96 100 75

@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 94 96 100 75

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
landmark-one-main moderate
region moderate
target-size serious

2 similar comments
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
landmark-one-main moderate
region moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
landmark-one-main moderate
region moderate
target-size serious

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.81%. Comparing base (4d09843) to head (7846c9a).

Additional details and impacted files
@@            Coverage Diff            @@
##                dev    #1201   +/-   ##
=========================================
  Coverage     80.81%   80.81%           
  Complexity      782      782           
=========================================
  Files            91       91           
  Lines          2116     2116           
  Branches        286      286           
=========================================
  Hits           1710     1710           
  Misses          252      252           
  Partials        154      154           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cy.get(".cmp-adaptiveform-fileinput__filename").contains(sampleFileName);
cy.get(fileInput).should(($element) => {
const actualValue = $element.val();
expect(actualValue.includes("")).to.be.true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are checking for empty value inside actual value ? Is this relevant

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its because we are clearing the value once the file is attached so that duplicate file can be attached and also I have added the test case to attach the duplicate file.

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check comments

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check comments

@rismehta rismehta merged commit 4995557 into dev Apr 29, 2024
10 checks passed
@rismehta rismehta deleted the FORMS-11746-allow_attaching_same_file branch April 29, 2024 09:19
github-actions bot pushed a commit that referenced this pull request May 3, 2024
* updated code for ui.frontend with test cases

* resolved PR comments

* test case fixed

---------

Co-authored-by: Gulshan Mishra <gulshanm@adobe.com>
Co-authored-by: Rajat Khurana <rajatkhurana@adobe.com>
github-actions bot pushed a commit that referenced this pull request May 7, 2024
* updated code for ui.frontend with test cases

* resolved PR comments

* test case fixed

---------

Co-authored-by: Gulshan Mishra <gulshanm@adobe.com>
Co-authored-by: Rajat Khurana <rajatkhurana@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants