Lines 618-623
describe("Data provider tab options", () => {
Link Here
|
618 |
cy.get("#import_file").click(); |
618 |
cy.get("#import_file").click(); |
619 |
cy.get("#import_file").selectFile("t/cypress/fixtures/file.json"); |
619 |
cy.get("#import_file").selectFile("t/cypress/fixtures/file.json"); |
620 |
cy.get("#files .file_information span").contains("file.json"); |
620 |
cy.get("#files .file_information span").contains("file.json"); |
|
|
621 |
|
622 |
cy.intercept( |
623 |
"POST", |
624 |
"/api/v1/erm/usage_data_providers/1/process_COUNTER_file*", |
625 |
{ |
626 |
statusCode: 200, |
627 |
body: { |
628 |
jobs: [ |
629 |
{ |
630 |
job_id: 1, |
631 |
}, |
632 |
], |
633 |
}, |
634 |
} |
635 |
); |
636 |
|
637 |
cy.get("#files > form > fieldset > input[type=submit]").click(); |
638 |
|
639 |
cy.get( |
640 |
"#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message > li" |
641 |
).contains( |
642 |
"Job for uploaded file has been queued. Check job progress." |
643 |
); |
621 |
}); |
644 |
}); |
622 |
|
645 |
|
623 |
it("Should display import logs", () => { |
646 |
it("Should display import logs", () => { |
Lines 722-728
describe("Data providers action buttons", () => {
Link Here
|
722 |
cy.get( |
745 |
cy.get( |
723 |
"#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message > li" |
746 |
"#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message > li" |
724 |
).contains( |
747 |
).contains( |
725 |
"Job for report type TR_J1 has been queued, click here to check its progress." |
748 |
"Job for report type TR_J1 has been queued. Check job progress." |
726 |
); |
749 |
); |
727 |
}); |
750 |
}); |
728 |
|
751 |
|
729 |
- |
|
|