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

Speedup tests: use short timeout by default #1122

Merged
merged 4 commits into from
Apr 18, 2020
Merged

Speedup tests: use short timeout by default #1122

merged 4 commits into from
Apr 18, 2020

Conversation

asolntsev
Copy link
Member

Proposed changes

  • use timeout 1 ms in most tests

Checklist

  • Checkstyle and unit tests are passed locally with my changes by running gradlew check chrome_headless firefox_headless command
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@asolntsev asolntsev added this to the 5.11.0 milestone Apr 17, 2020
@asolntsev asolntsev self-assigned this Apr 17, 2020
@asolntsev asolntsev force-pushed the speedup-tests branch 3 times, most recently from fa242f3 to 0625dfb Compare April 17, 2020 19:12
@@ -26,7 +26,7 @@ void setUp() {
@Test
@Video
void userCanBrowseTabs_webdriver_api() {
openFile("page_with_tabs.html");
setTimeout(1000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't openFile("page_with_tabs.html"); removed by mistake?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the same line openFile("page_with_tabs.html"); is executed in setUp() method.

.. and use bigger timeout explicitly only in tests that actually need it.
* "selenide.selectorMode"
* "selenide.assertionMode"
@asolntsev asolntsev merged commit 231597e into master Apr 18, 2020
@asolntsev asolntsev deleted the speedup-tests branch April 18, 2020 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants