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

FAT-17417 Support automated tests #4629

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading