Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tommarshall/8844082 to your computer and use it in GitHub Desktop.

Select an option

Save tommarshall/8844082 to your computer and use it in GitHub Desktop.

Revisions

  1. tommarshall created this gist Feb 6, 2014.
    19 changes: 19 additions & 0 deletions Keeping password out of nightwatch test specs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    // tests/update-contact.js

    auth_creds = require('./auth_creds.json');

    module.exports = {

    setUp : function(browser) {
    browser
    .url("http://example.com")
    .waitForElementVisible("body", 1000)
    .setValue("#Username", auth_creds.username)
    .setValue("#Password", auth_creds.password)
    .click("#loginSubmit");
    },

    "Step 1" : function (browser) {},

    "Step 2" : function (browser) {}
    };