Skip to content

Commit

Permalink
test case fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatkhurana-adobe authored and ci-build committed Apr 22, 2024
1 parent 4241961 commit a27a742
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ui.tests/test-module/specs/fileinput/fileinput.runtime.spec.js
Expand Up @@ -117,9 +117,15 @@ describe("Form with File Input - Basic Tests", () => {
const actualValue = $element.val();
expect(actualValue.includes("")).to.be.true;
})
})


});
// attaching the same file again to check duplicate file attachment
cy.get(fileInput).attachFile(sampleFileName).then(() => {
cy.get(".cmp-adaptiveform-fileinput__filename").should('have.length', 2);
cy.get(fileInput).should(($element) => {
const actualValue = $element.val();
expect(actualValue.includes("")).to.be.true;
})
});
});

it(" model's changes are reflected in the html ", () => {
Expand Down

0 comments on commit a27a742

Please sign in to comment.