Skip to content

Commit e36756e

Browse files
committed
renamed useElements to findZeroOrMoreElements
1 parent 7e1925d commit e36756e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/net/itarray/automotion/validation/UISnapshot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public ChunkUIElementValidator findElements(List<WebElement> webElements) {
5555
return new ResponsiveUIChunkValidatorBase(this, webElements, false);
5656
}
5757

58-
public ChunkUIElementValidator useElements(List<WebElement> webElements) {
59-
return new ResponsiveUIChunkValidatorBase(this, webElements, true );
58+
public ChunkUIElementValidator findZeroOrMoreElements(List<WebElement> webElements) {
59+
return new ResponsiveUIChunkValidatorBase(this, webElements, true);
6060
}
6161

6262
public File takeScreenshot() {

src/test/java/net/itarray/automotion/tests/grid/ChunkTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void setUp() {
4242
boolean allowEmpty = getClass().getAnnotation(AllowEmpty.class) != null;
4343
chunkValidator =
4444
allowEmpty ?
45-
snapshot.useElements(webElements) :
45+
snapshot.findZeroOrMoreElements(webElements) :
4646
snapshot.findElements(webElements);
4747
}
4848

0 commit comments

Comments
 (0)