Skip to content

Commit

Permalink
Add test for importing .csv file with missing application name
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Sep 1, 2023
1 parent ae8eab0 commit 6bf2ba2
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,29 @@ describe(["@tier2"], "Application import operations", () => {
verifyImportErrorMsg(errorMsgs);
});

it("Import .CSV file without app name", function () {
// Automates https://issues.redhat.com/browse/TACKLE-634
Application.open();
cy.wait("@getApplication");

// Import csv with invalid record type
const fileName = "missing_app_name.csv";
importApplication(filePath + fileName);
cy.wait(2000);

// Open application imports page
openManageImportsPage();

// Verify import applications page shows correct information
verifyAppImport(fileName, "Completed", 0, 1);

var errorMsgs = ["Application Name is mandatory."];

// Verify the error report message
openErrorReport();
verifyImportErrorMsg(errorMsgs);
});

after("Perform test data clean up", function () {
// Business services and apps were created during app imports; Hence these functions are being used for
// cleanup.
Expand Down

0 comments on commit 6bf2ba2

Please sign in to comment.