Skip to content

Commit

Permalink
mark integration tests as such
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 31, 2023
1 parent 98b3946 commit c7dadaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@
import com.axonivy.ivy.webtest.engine.EngineUrl;

@IvyWebTest(headless = true)
public class WebTestAsposeBarcodeDemo{
public class WebTestAsposeBarcodeDemoIT{

private static final String BARCODE_STRING = "form:str";
private static final String PROCEED_BUTTON = "form:proceed";
private static final String BARCODE_IMAGE = "code_128";

@Test
public void createBarcodePage(){

open(EngineUrl.createProcessUrl("AsposeBarcodeDemo/16CD7829EF6B489B/start.ivp"));

open(EngineUrl.createProcessUrl("AsposeBarcodeDemo/16CD7829EF6B489B/start.ivp"));

$(By.id(BARCODE_STRING)).shouldBe(empty);
$(By.id(BARCODE_STRING)).sendKeys(String.valueOf("Hello Axon Ivy"));
$(By.id(PROCEED_BUTTON)).shouldBe(visible).click();

$(By.id(BARCODE_IMAGE)).shouldBe(visible).isImage();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,19 @@
import com.codeborne.selenide.Selenide;

@IvyWebTest
public class WebTestAsposeEmailDemo
{
public class WebTestAsposeEmailDemoIT {

@BeforeAll
public static void setUp()
{
public static void setUp() {
Selenide.closeWebDriver();
Configuration.proxyEnabled = true;
Configuration.fileDownload = FileDownloadMode.PROXY;
Selenide.open();
}

@Test
public void testMsgEmail() throws Exception
{
open(EngineUrl.createProcessUrl("AsposeEmailDemo/1712BF5507F25F15/start.ivp"));
public void testMsgEmail() throws Exception {
open(EngineUrl.createProcessUrl("AsposeEmailDemo/1712BF5507F25F15/start.ivp"));
File msg = $(By.id("form:createBtn")).shouldBe(visible).download();

Awaitility.await().untilAsserted(() -> {
Expand Down

0 comments on commit c7dadaf

Please sign in to comment.