Commit Graph

26 Commits

Author SHA1 Message Date
Maxim Khlobystov
397a94b1c9 Put the assertion logic that browsers share into a separate utility class, thus avoiding unnecessary code repetition + we are now fetching the base url from the wdio config (not hardcoded anymore). 2017-08-16 12:31:49 -04:00
Maxim Khlobystov
cca17c222e Got rid of the tests' getting started document (these docs are already on the official docs website). 2017-08-15 11:04:38 -04:00
Maxim Khlobystov
511529c93f Cleanup: removing some debug code. 2017-08-15 11:02:10 -04:00
Maxim Khlobystov
723532c4a4 Increased the Jasmine default timeout to prevent async-related errors when running the tests on desktop Ubuntu. 2017-08-15 10:44:19 -04:00
Maxim Khlobystov
3d7a35972b Updated the page object classes according with the multiremote needs. 2017-08-14 12:58:43 -04:00
Maxim Khlobystov
8379d5207c Updated all the existing landing page specs to support mutiremote mode. 2017-08-14 12:30:14 -04:00
Maxim Khlobystov
4e55403348 Added multiremote to the test runner config. 2017-08-14 10:03:43 -04:00
Maxim Khlobystov
03373b5abe Make sure the acceptance tests that involve keyboard are not executed on Firefox
This commit prevents logging with Enter key from happening in Firefox tests. There's a well-known bug associated with browser.keys() on Firefox. We add an additional check to the Login test specs to prevent that from happening.
2017-06-05 23:42:33 +00:00
Maxim Khlobystov
b0762b9d84 Update the acceptance testing docs
This commit does the following updates:
- fixes the misprint that prevented Chrome from being installed
- removes the step of creating the `tools` directory (we don't need this anymore, since the directory is commited now)
2017-06-04 23:52:04 +00:00
Maxim Khlobystov
5b0e0d35eb Add an empty hidden file inside tools to be able to commit the directory 2017-06-04 23:44:36 +00:00
Maxim Khlobystov
f100563516 Upgrade test reporting
This commit does the following:
- adds the Spec test reporter to display all the passed/failed test specs after all the tests finish running
- removes console logging (we don't need it anymore, since we can see the reported results at the end of every test run)
- adds the XML test reporter for easier Jenkins integration
2017-06-04 23:25:51 +00:00
Maxim Khlobystov
48b5ca32cb Translate the page object classes to ES6 2017-06-03 01:27:29 +00:00
Maxim Khlobystov
584d15d7c6 Fix the JSCS errors introduced by the new testing code 2017-06-03 00:25:39 +00:00
Maxim Khlobystov
77c776bd78 Initialize custom command for a login action (not used yet, will be utilized in future tests). 2017-05-30 01:45:30 +00:00
Maxim Khlobystov
b2f09ad1f0 Add Node.js installation step to the docs on acceptance testing. 2017-05-30 01:17:13 +00:00
Maxim Khlobystov
73892627ae Fix multiple misprints in the acceptance testing docs. 2017-05-30 00:49:39 +00:00
Maxim Khlobystov
5dbd42ce2e Update the acceptance test docs
This commit adds the steps of how to run and configure the acceptance test specs and suites.
2017-05-28 05:32:52 +00:00
Maxim Khlobystov
68de9493a5 Group the login acceptance tests into a single test suite. 2017-05-28 05:07:06 +00:00
Maxim Khlobystov
3cef659a43 Set the test runner to take only those files that have *.conf.js filenames. 2017-05-28 03:30:11 +00:00
Maxim Khlobystov
4703692de8 Start writing the Getting Started guide for the acceptance tests
This commit adds the INSTALL.md file with all the steps to get the Selenium server up and running.
2017-05-25 23:43:53 +00:00
Maxim Khlobystov
220fa275b4 Add two test cases to verify that user can't enter the client without a username
This commit does the following:
- Adds two specs to test the landing page behaviour with no username entered (clicking the Join button or pressing Enter key)
- Fixes the test case that checks the landing page title (it previously didn't really do the job)
2017-05-22 02:38:42 +00:00
Maxim Khlobystov
d69fc3bfaa Test both ways of joining HTML5 client from the landing page: clicking the Join button and pressing Enter
This commit improves the landing page test spec by introducing the way to enter the client by pressing Enter. We also temporarily switch to Chrome in the main config file due to the bug in Geckodriver that doesn't allow us to use keyboard keys.
2017-05-22 01:56:02 +00:00
Maxim Khlobystov
e6cce3d0e6 Set the Selenium test runner to log everything. 2017-05-22 01:24:41 +00:00
Maxim Khlobystov
0535edf6c1 Upgrade the landing page test to enter the actual HTML5 client
This commit adds the action of submitting the landing page form to the test spec.

Note: Geckodriver 0.11.1 has a bug that prevents running our landing page test on Firefox 5.3 (version 5.2 works fine).
2017-05-16 03:15:22 +00:00
Maxim Khlobystov
0c41baa439 Setup wdio + Finish the dummy landing page title test
This commit adds the config file for the wdio test runner. Using the packaged runner instead of the particular Jasmine runner allows us to do the following:
- Use the global browser object (simplifies access to the Selenium methods from any particular assertion)
- Avoid installing Jasmine globally

The dummy landing page title test actually does the job now.
2017-05-15 01:29:00 +00:00
Maxim Khlobystov
2013109236 Do initial WebdriverIO setup + Add dummy landing page title test
This commit adds 2 packages:
    - WebdriverIO main package
    - Jasmine integration for WebdriverIO

Dummy landing page spec is created (supposed to test the title, but doesn't actually do that yet). This new spec follows the Page Object pattern.
2017-05-14 03:52:43 +00:00