Skip to content

Commit

Permalink
Rename download preview button to specify CSV format
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlana-stsiapanava committed Jan 14, 2025
1 parent 0018689 commit f85a5bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/support/fragments/bulk-edit/bulk-edit-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const plusBtn = Button({ icon: 'plus-sign' });
const deleteBtn = Button({ icon: 'trash' });
const keepEditingBtn = Button('Keep editing');
const areYouSureForm = Modal('Are you sure?');
const downloadPreviewBtn = Button('Download preview');
const downloadPreviewInCSVFormatBtn = Button('Download preview in CSV format');
const newBulkEditButton = Button('New bulk edit');
const startBulkEditLocalButton = Button('Start bulk edit (Local)');
const startBulkEditButton = Button('Start bulk edit');
Expand Down Expand Up @@ -185,7 +185,7 @@ export default {
cy.expect([
areYouSureForm.find(HTML(including(`${count} records will be changed`))).exists(),
areYouSureForm.find(keepEditingBtn).exists(),
areYouSureForm.find(downloadPreviewBtn).exists(),
areYouSureForm.find(downloadPreviewInCSVFormatBtn).exists(),
areYouSureForm.find(commitChanges).exists(),
]);
if (cellContent) {
Expand Down Expand Up @@ -241,13 +241,13 @@ export default {
},

downloadPreview() {
cy.do(downloadPreviewBtn.click());
cy.do(downloadPreviewInCSVFormatBtn.click());
// Wait for file to download
cy.wait(3000);
},

verifyDownloadPreviewButtonDisabled(isDisabled = true) {
cy.expect(areYouSureForm.find(downloadPreviewBtn).has({ disabled: isDisabled }));
cy.expect(areYouSureForm.find(downloadPreviewInCSVFormatBtn).has({ disabled: isDisabled }));
},

clickKeepEditingBtn() {
Expand Down

0 comments on commit f85a5bc

Please sign in to comment.