Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
- Use latest arquillian components
- Change German -> English locale for tests to pass
  • Loading branch information
tsabirgaliev committed Jan 4, 2018
1 parent 851d761 commit 8826e73
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
29 changes: 26 additions & 3 deletions my-aktion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,32 @@
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.org.jboss.arquillian>1.2.0.Final</version.org.jboss.arquillian>
<version.org.jboss.arquillian.drone>2.5.0</version.org.jboss.arquillian.drone>
<version.org.jboss.arquillian.graphene2>2.3.2</version.org.jboss.arquillian.graphene2>
</properties>

<dependencyManagement>
<dependencies>
<!-- Arquillian Core dependencies -->
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>${version.org.jboss.arquillian}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Arquillian Drone dependencies and WebDriver/Selenium dependencies -->
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-drone-bom</artifactId>
<version>${version.org.jboss.arquillian.drone}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>javax</groupId>
Expand All @@ -31,18 +55,17 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.8.1</version>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<version>1.1.2.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.graphene</groupId>
<artifactId>graphene-webdriver</artifactId>
<version>2.0.1.Final</version>
<version>${version.org.jboss.arquillian.graphene2}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class AbstractPage {
private WebElement facesMessages;

private String getString(String key) {
return ResourceBundle.getBundle("messages", Locale.GERMAN).getString(key);
return ResourceBundle.getBundle("messages", Locale.ENGLISH).getString(key);
}

protected WebElement getButtonByLabel(String label) {
Expand Down

0 comments on commit 8826e73

Please sign in to comment.