Skip to content

Commit

Permalink
Resolving issue with tests not running on *nix/Firefox (#190)
Browse files Browse the repository at this point in the history
* Resolving issue with tests not running on *nix/Firefox

- There was an issue running the tests under *nix / Firefox that occurred due to
  Firefox not switching back to the default frame context which lead any further
  tests to fail ( as it would not be able to locate anything ).

* Adding to fix Travis

- Travis doesn't like our classes, specifying that it should use node and es6.
  • Loading branch information
ryanrath authored Jul 21, 2017
1 parent 36c2764 commit d673417
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-env node, es6 */
class LoginPage {
login(title, theUrl, loginName, loginPassword, displayName) {
describe('General', function () {
Expand All @@ -23,6 +24,12 @@ class LoginPage {
$('#txt_login_username input').setValue(loginName);
$('#txt_login_password input').setValue(loginPassword);
$('#btn_sign_in .x-btn-mc').click();

// Per: http://webdriver.io/api/protocol/frame.html#Usage
// Resetting the server to the page's default content
// This was causing issues with running the tests under
// Ubuntu 16.04:Firefox
browser.frame();
});
it('Display Logged in Users Name', function () {
$('#welcome_message').waitForExist(60000);
Expand Down

0 comments on commit d673417

Please sign in to comment.