-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Developed .html files and tests for method element(final By locator). #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great tests! Just a few small corrections required before merge.
public TestElementPage checkAnimationElement() { | ||
element(By.id("myAnimation")).should().beDisplayed(); | ||
element(By.id("myAnimation")).should().beDisplayed(); | ||
element(By.id("myAnimation")).should().beDisplayed(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure i understand the idea of this particular test? What does it really check and in what situation do you expect it to fail? I think the best way would be to provide a comment to this method - explaining the idea of it
@Autowired | ||
private TestElementPage testElementPage; | ||
|
||
@Test(expectedExceptions = Exception.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please specify what exactly exception is expected as Exception is too general
/** | ||
* Created by shekhavtsov on 21/07/2017. | ||
*/ | ||
public class NonexistentElement extends BaseTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add "ThrowsException" to a class name to make it more friendly
@vefimofff I fixed. Plz review: 5f0d434 |
issue #12
test for method element(final By locator).