Skip to content

Commit

Permalink
master
Browse files Browse the repository at this point in the history
_ adapt GUI test
  • Loading branch information
nhthinh-axonivy committed Nov 25, 2024
1 parent 70a8b43 commit e7fcc1c
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 e7fcc1c

Please sign in to comment.