Skip to content

Commit

Permalink
IVYPORTAL-18153 Fix GUI tests - BackNavigationTest#testFinishTaskFrom…
Browse files Browse the repository at this point in the history
…CaseDetailAndGoBack, BackNavigationTest#testNavigateAfterFinishedTaskToCaseDetails
  • Loading branch information
lttung-axonivy committed Dec 18, 2024
1 parent 851adc5 commit ca2838d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.axonivy.portal.selenium.test;

import static com.codeborne.selenide.Selenide.$;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

Expand All @@ -18,6 +20,7 @@
import com.axonivy.portal.selenium.page.TaskDetailsPage;
import com.axonivy.portal.selenium.page.TaskIFrameTemplatePage;
import com.axonivy.portal.selenium.page.TopMenuTaskWidgetPage;
import com.codeborne.selenide.Condition;


@IvyWebTest
Expand Down Expand Up @@ -139,6 +142,8 @@ public void testNavigateAfterFinishedTaskToCaseDetails() {
String today = LocalDateTime.now().format(DateTimeFormatter.ofPattern(DateTimePattern.DATE_TIME_PATTERN));
taskTemplatePage.inputField("[id$='payment-request:from_input']", today);

taskTemplatePage.clickByJavaScript($("div[id$='content']"));
$("div[id$='from_panel']").shouldBe(Condition.disappear);
taskTemplatePage.clickOnSubmitButton();
caseDetailsPage = new CaseDetailsPage();
caseDetailsPage.waitPageLoaded();
Expand Down

0 comments on commit ca2838d

Please sign in to comment.