-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2311 fix appium combined locator in reports
- Loading branch information
Showing
12 changed files
with
134 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...es/appium/src/test/java/com/codeborne/selenide/appium/selector/ByTagAndAttributeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.byTagAndAttribute; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class ByTagAndAttributeTest { | ||
@Test | ||
void testToString() { | ||
assertThat(byTagAndAttribute("div", "accessibility-id", "hello")) | ||
.hasToString("div[accessibility-id=hello]"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
modules/appium/src/test/java/com/codeborne/selenide/appium/selector/ByTagAndTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.byTagAndText; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class ByTagAndTextTest { | ||
@Test | ||
void testToString() { | ||
assertThat(byTagAndText("div", "Hello")) | ||
.hasToString("div[text=Hello]"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
modules/appium/src/test/java/com/codeborne/selenide/appium/selector/ByTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.byText; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class ByTextTest { | ||
@Test | ||
void testToString() { | ||
assertThat(byText("Hello")).hasToString("[text=Hello]"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../appium/src/test/java/com/codeborne/selenide/appium/selector/WithTagAndAttributeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.withTagAndAttribute; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class WithTagAndAttributeTest { | ||
@Test | ||
void testToString() { | ||
assertThat(withTagAndAttribute("div", "accessibility-id", "hello")) | ||
.hasToString("div[accessibility-id*=hello]"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
modules/appium/src/test/java/com/codeborne/selenide/appium/selector/WithTagAndTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.withTagAndText; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class WithTagAndTextTest { | ||
@Test | ||
void testToString() { | ||
assertThat(withTagAndText("div", "Hello")) | ||
.hasToString("div[text*=Hello]"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
modules/appium/src/test/java/com/codeborne/selenide/appium/selector/WithTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.codeborne.selenide.appium.selector; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.codeborne.selenide.appium.AppiumSelectors.withText; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class WithTextTest { | ||
@Test | ||
void testToString() { | ||
assertThat(withText("Hello")).hasToString("[text*=Hello]"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters