diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20f11744..f449a47f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: inputs: mvnArgs: type: string - default: '-Divy.engine.download.url=https://dev.axonivy.com/permalink/nightly-10/axonivy-engine.zip' + default: '-Divy.engine.download.url=https://dev.axonivy.com/permalink/nightly-11.2/axonivy-engine.zip' required: false diff --git a/doc-factory-demos-test/pom.xml b/doc-factory-demos-test/pom.xml index 11050536..f8dd1f6f 100644 --- a/doc-factory-demos-test/pom.xml +++ b/doc-factory-demos-test/pom.xml @@ -7,8 +7,8 @@ iar-integration-test - 10.0.14 - 10.0.14 + 11.2.0 + 11.2.1 @@ -22,12 +22,12 @@ com.axonivy.ivy.webtest web-tester ${web-tester.version} - test - - + test + + com.codeborne selenide-proxy - 6.9.0 + 7.0.2 test diff --git a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java index 2eef2391..e5a08b0e 100644 --- a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java +++ b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java @@ -7,7 +7,6 @@ import static com.codeborne.selenide.Selenide.open; import static org.assertj.core.api.Assertions.assertThat; -import java.io.FileNotFoundException; import java.nio.file.Path; import org.junit.jupiter.api.BeforeAll; @@ -60,7 +59,7 @@ void docWithNestedTablesHTML() throws Exception { } @Test - void zipMultipleDocuments() throws FileNotFoundException { + void zipMultipleDocuments() throws Exception { open(EngineUrl.createProcessUrl("/DocFactoryDemos/16CD7829EF6B489B/start2.ivp")); var doc = Selenide.$$("button").find(exactText("Create Multiple Formats")).shouldBe(visible).download(); assertThat(doc).hasName("Documents.zip"); @@ -86,7 +85,7 @@ void ivyDocApi(WebAppFixture fixture) { $("iframe").shouldBe(visible); } - private void assertDownload(String process, String expectedFileName) throws FileNotFoundException { + private void assertDownload(String process, String expectedFileName) throws Exception { open(EngineUrl.createProcessUrl(DOC_DEMOS_BASE + process)); var doc = $("#docLink").shouldBe(visible).download(); assertThat(doc).hasName(expectedFileName); diff --git a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestSubprocessExamplesIT.java b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestSubprocessExamplesIT.java index 9327e50e..6e6ed8c0 100644 --- a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestSubprocessExamplesIT.java +++ b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestSubprocessExamplesIT.java @@ -5,7 +5,6 @@ import static com.codeborne.selenide.Selenide.open; import static org.assertj.core.api.Assertions.assertThat; -import java.io.FileNotFoundException; import java.nio.file.Path; import java.time.Duration; @@ -62,11 +61,11 @@ void docWithNestedObject() throws Exception { assertDownload("start6.ivp", "DocWithNestedObject.pdf"); } - private void assertDownload(String process, String expectedFileName) throws FileNotFoundException { + private void assertDownload(String process, String expectedFileName) throws Exception { open(EngineUrl.createProcessUrl(DOC_DEMOS_BASE + process)); var doc = $("#docLink").shouldBe(visible).download(DownloadOptions.using(FileDownloadMode.PROXY) .withTimeout(Duration.ofSeconds(10)) - .withFilter(FileFilters.withName(expectedFileName))); + .withFilter(FileFilters.withName(expectedFileName))); assertThat(doc).hasName(expectedFileName); assertThat(doc.length() / 1024).isGreaterThan(15);