diff options
author | Mavlushechka <mavlushechka@gmail.com> | 2022-10-17 22:08:27 +0500 |
---|---|---|
committer | Mavlushechka <mavlushechka@gmail.com> | 2022-10-17 22:08:27 +0500 |
commit | 3af8de0f0c40f90129a5defa6e51d4c04e2d4254 (patch) | |
tree | 739f2d186ddb4a19d25ed629cd47d017f9256125 /src/main/java/com/mavlushechka/a1qa | |
parent | 348c62b52cec336262aa3546b4a62573ff675c80 (diff) |
Replace notExists() method with postExists()
Diffstat (limited to 'src/main/java/com/mavlushechka/a1qa')
-rw-r--r-- | src/main/java/com/mavlushechka/a1qa/pages/PostForm.java | 6 | ||||
-rw-r--r-- | src/main/java/com/mavlushechka/a1qa/pages/ProfileWallForm.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/mavlushechka/a1qa/pages/PostForm.java b/src/main/java/com/mavlushechka/a1qa/pages/PostForm.java index 3732698..11b9513 100644 --- a/src/main/java/com/mavlushechka/a1qa/pages/PostForm.java +++ b/src/main/java/com/mavlushechka/a1qa/pages/PostForm.java @@ -57,11 +57,11 @@ public class PostForm extends BaseForm { } public void waitForDelete() { - AqualityServices.getConditionalWait().waitFor(this::notExists); + AqualityServices.getConditionalWait().waitFor(() -> !postExists()); } - public boolean notExists() { - return !authorLabel.state().isDisplayed(); + public boolean postExists() { + return authorLabel.state().isDisplayed(); } } diff --git a/src/main/java/com/mavlushechka/a1qa/pages/ProfileWallForm.java b/src/main/java/com/mavlushechka/a1qa/pages/ProfileWallForm.java index 2c01ab0..f030924 100644 --- a/src/main/java/com/mavlushechka/a1qa/pages/ProfileWallForm.java +++ b/src/main/java/com/mavlushechka/a1qa/pages/ProfileWallForm.java @@ -21,7 +21,7 @@ public class ProfileWallForm extends BaseForm { } public boolean notContainsPost(Post post) { - return new PostForm(post).notExists(); + return !new PostForm(post).postExists(); } public boolean containsComment(Comment comment) { |