You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/04/02 16:06:41 UTC
[royale-asjs] branch develop updated: examples-integration-test:
Staring TourDeJewel integration tests
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new fdc446c examples-integration-test: Staring TourDeJewel integration tests
fdc446c is described below
commit fdc446c51805e47fa6a08773975aaaafa7173d31
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Apr 2 18:06:35 2020 +0200
examples-integration-test: Staring TourDeJewel integration tests
---
examples/examples-integrationtests/pom.xml | 14 +++++++
.../royale/examples/jewel/TourDeJewelIT.java | 47 ++++++++++++++++++++++
2 files changed, 61 insertions(+)
diff --git a/examples/examples-integrationtests/pom.xml b/examples/examples-integrationtests/pom.xml
index ec159b8..82281c5 100644
--- a/examples/examples-integrationtests/pom.xml
+++ b/examples/examples-integrationtests/pom.xml
@@ -103,6 +103,13 @@
</properties>
</configuration>
<deployables>
+ <!-- Jewel-->
+ <deployable>
+ <groupId>org.apache.royale.examples</groupId>
+ <artifactId>TourDeJewel</artifactId>
+ <type>war</type>
+ </deployable>
+
<deployable>
<groupId>org.apache.royale.examples</groupId>
<artifactId>ASDoc</artifactId>
@@ -233,6 +240,13 @@
<!-- Applications we want to deploy -->
<dependency>
<groupId>org.apache.royale.examples</groupId>
+ <artifactId>TourDeJewel</artifactId>
+ <version>0.9.7-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.examples</groupId>
<artifactId>ASDoc</artifactId>
<version>0.9.7-SNAPSHOT</version>
<type>war</type>
diff --git a/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/jewel/TourDeJewelIT.java b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/jewel/TourDeJewelIT.java
new file mode 100644
index 0000000..56d1751
--- /dev/null
+++ b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/jewel/TourDeJewelIT.java
@@ -0,0 +1,47 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.royale.examples.jewel;
+
+import org.apache.royale.examples.AbstractIT;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.openqa.selenium.Alert;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebElement;
+
+/**
+ */
+public class TourDeJewelIT extends AbstractIT {
+
+ @Override
+ protected String getContext() {
+ return "TourDeJewel";
+ }
+
+ @Test
+ public void testJewelLogo() {
+ initTest();
+
+ WebElement jewelLogo = driver.findElement(By.xpath("//input[contains(@src, 'assets/apache-royale-jewel-logo-white.svg')]"));
+ Assert.assertNotNull(jewelLogo);
+
+ }
+
+}