Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
shahdivyank committed Dec 5, 2023
1 parent 852a00a commit fe14b7e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions cypress/component/admin/Upload.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,6 @@ describe("Upload", () => {
});
});

it("Upload invalid file size", () => {
const file = "sample.png";
const Parent = () => {
const [email, setEmail] = useState({
files: [],
});

return (
<Upload
setObjects={setEmail}
objects={email}
size={[1, "B"]}
types={["pdf", "jpg", "jpeg", "png"]}
/>
);
};

cy.mount(<Parent />);
cy.contains("attach");
cy.get('[data-cy="upload-input"]')
.find("input[type=file]")
.selectFile("cypress/fixtures/files/" + file, { force: true });
cy.get(`[data-cy="${file}"]`).should("not.exist");
});

it("Upload Invalid File", () => {
const file = "sample.png";
const Parent = () => {
Expand Down

0 comments on commit fe14b7e

Please sign in to comment.