diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 6b57df01..b5813182 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -11,5 +11,5 @@ jobs: uses: './.github/workflows/ci.yml' secrets: inherit with: - mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" "-Divy.engine.version=11.2.0" "-Dproject-build-plugin-version=11.2.0-SNAPSHOT" -Dmaven.deploy.skip=true' + mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" "-Divy.engine.version=11.2.0" "-Dproject-build-plugin-version=11.2.0-SNAPSHOT" "-Dweb-tester.version=11.2.0-SNAPSHOT" -Dmaven.deploy.skip=true' diff --git a/doc-factory-demos-test/pom.xml b/doc-factory-demos-test/pom.xml index 4dc9a8dc..11050536 100644 --- a/doc-factory-demos-test/pom.xml +++ b/doc-factory-demos-test/pom.xml @@ -8,6 +8,7 @@ 10.0.14 + 10.0.14 @@ -18,10 +19,10 @@ iar - com.axonivy.ivy.webtest - web-tester - 10.0.0 - test + com.axonivy.ivy.webtest + web-tester + ${web-tester.version} + test com.codeborne @@ -62,14 +63,26 @@ - central.snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - always - + central.snapshots + https://oss.sonatype.org/content/repositories/snapshots + + false + + + always + - + + + + central.snapshots + https://oss.sonatype.org/content/repositories/snapshots + + false + + + always + + + 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 e06ab4cc..19443b89 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 @@ -17,6 +17,7 @@ import com.axonivy.ivy.webtest.IvyWebTest; import com.axonivy.ivy.webtest.engine.EngineUrl; +import com.axonivy.ivy.webtest.engine.WebAppFixture; import com.codeborne.selenide.Configuration; import com.codeborne.selenide.FileDownloadMode; import com.codeborne.selenide.Selenide; @@ -41,8 +42,8 @@ void docWithCompositeObjPdf() throws Exception { @Test void docWithCompositeObjPdfA() throws Exception { assertDownload("start8.ivp", "DocWithCompositeObjectA.pdf"); - } - + } + @Test void docWithNestedTablesPDF() throws Exception { assertDownload("start3.ivp", "DocWithFullNestedTables.pdf"); @@ -67,13 +68,9 @@ void zipMultipleDocuments() throws FileNotFoundException { } @Test - void ivyDocApi() { + void ivyDocApi(WebAppFixture fixture) { if (!EngineUrl.isDesigner()) { - open(EngineUrl.create().path("login").toUrl()); - $(By.id("loginForm:userName")).shouldBe(visible).sendKeys("test"); - $(By.id("loginForm:password")).shouldBe(visible).sendKeys("test"); - $(By.id("loginForm:login")).click(); - $(By.id("sessionUserName")).shouldHave(exactText("test")); + fixture.login("test", "test"); } open(EngineUrl.createProcessUrl("/DocFactoryDemos/16DFD8AB2E4BFFF9/start2.ivp")); $(By.id("form:name")).shouldBe(visible).sendKeys("Batman");