Skip to content
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

Merged
merged 2 commits into from
Jul 26, 2017

Conversation

EreOo
Copy link
Contributor

@EreOo EreOo commented Jul 21, 2017

issue #12
test for method element(final By locator).

Copy link
Contributor

@vefimofff vefimofff left a 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();
Copy link
Contributor

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)
Copy link
Contributor

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 {
Copy link
Contributor

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

@EreOo
Copy link
Contributor Author

EreOo commented Jul 25, 2017

@vefimofff I fixed. Plz review: 5f0d434

@vefimofff vefimofff merged commit d209636 into WileyLabs:master Jul 26, 2017
@EreOo EreOo deleted the 2-tests-for-element branch July 26, 2017 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants