Skip to content

Commit

Permalink
Bug/ivyportal 17918 (#1267)
Browse files Browse the repository at this point in the history
* IVYPORTAL-17855
_ adapt GUI test
  • Loading branch information
nhthinh-axonivy authored Nov 25, 2024
1 parent cd67c58 commit 11f9b90
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,17 @@ public void uploadDocumentAndCheckDocumentName() {
updateFileExtensionWhiteListInPortalSetting();
initNewDashboardPage(TestAccount.ADMIN_USER);
casePage = menuPage.openCaseList();

caseDetailsPage = casePage.openDetailsCase("Leave Request");
caseDetailsPage.uploadDocumentWithoutError(FileHelper.getAbsolutePathToTestFile(pdfFile));
isCorrectIconExtension(pdfFile, "si si-office-file-pdf-1");

casePage = menuPage.openCaseList();
caseDetailsPage = casePage.openDetailsCase("Leave Request");
caseDetailsPage.uploadDocumentWithoutError(FileHelper.getAbsolutePathToTestFile(wordFile));
isCorrectIconExtension(wordFile, "si si-office-file-doc-1");

casePage = menuPage.openCaseList();
caseDetailsPage = casePage.openDetailsCase("Leave Request");
caseDetailsPage.uploadDocumentWithoutError(FileHelper.getAbsolutePathToTestFile(unsupportFile));
isCorrectIconExtension(unsupportFile, "si si-common-file-empty");
}
Expand Down

0 comments on commit 11f9b90

Please sign in to comment.