colossal-match-42171
12/05/2022, 5:47 PMchilly-motorcycle-68015
12/05/2022, 6:31 PMmysterious-belgium-25713
12/05/2022, 6:39 PMcold-bird-96191
12/05/2022, 9:46 PMfaint-kangaroo-63063
12/05/2022, 9:58 PMcuddly-notebook-88094
12/05/2022, 10:47 PMcy.fixture('example.csv', 'utf8')
.then(csvContent => {
// Select the file input element on the page
cy.get('#file-input')
// Trigger a 'change' event on the element with the CSV file content
.trigger('change', { target: { files: [csvContent] } })
// Assert that the file has been uploaded successfully
.then(() => {
cy.get('#upload-status')
.should('have.text', 'File uploaded successfully')
});
});
cold-bird-96191
12/05/2022, 11:01 PMgray-kilobyte-89541
12/06/2022, 12:34 AMcuddly-notebook-88094
12/06/2022, 2:15 AMgreat-oil-15113
12/06/2022, 2:48 AMit ('should include attachment', function () {
this.test.attachments = ['/absolut/path/to/file.png'];
});
but i can't get it working. it complains that the 'this.test' here does not have attachments property. how to solve that? thankscuddly-notebook-88094
12/06/2022, 4:22 AMhelpful-hairdresser-46183
12/06/2022, 6:25 AMfaint-kangaroo-63063
12/06/2022, 7:01 AMkind-beard-65748
12/06/2022, 7:51 AMfresh-doctor-14925
12/06/2022, 8:04 AMcold-bird-96191
12/06/2022, 8:07 AMbumpy-journalist-50069
12/06/2022, 9:51 AMauthService
that the backend is using to authenticate communication for the logged-in user's session.better-elephant-20934
12/06/2022, 11:48 AMbetter-elephant-20934
12/06/2022, 11:58 AMbumpy-insurance-8581
12/06/2022, 2:32 PMfresh-doctor-14925
12/06/2022, 2:38 PMnutritious-analyst-96582
12/06/2022, 2:38 PMbumpy-insurance-8581
12/06/2022, 2:47 PMbumpy-insurance-8581
12/06/2022, 2:49 PMfresh-doctor-14925
12/06/2022, 2:59 PMenough-fireman-4779
12/06/2022, 3:16 PMnpm ERR! command failed
npm ERR! command sh -c node index.js --exec install
npm ERR! Cypress cannot write to the cache directory due to file permissions
npm ERR!
npm ERR! See discussion and possible solutions at
npm ERR! https://github.com/cypress-io/cypress/issues/1281
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! Failed to access /.cypress-cache:
npm ERR!
npm ERR! EACCES: permission denied, mkdir '/.cypress-cache'
npm ERR!
npm ERR! ----------
bumpy-insurance-8581
12/06/2022, 3:41 PMcy-verify-downloads
but it seem to not work with typescript 😢bumpy-insurance-8581
12/06/2022, 3:42 PMcolossal-match-42171
12/06/2022, 5:14 PMcolossal-match-42171
12/06/2022, 5:15 PM