UNPKG

vue-express-mongo-boilerplate

Version:

Express NodeJS application server boilerplate with Mongo and VueJS

36 lines (28 loc) 744 B
"use strict"; let commands = { login(username, password) { return this .waitForElementVisible('@usernameField', 10000) .assert.containsText("@title", "LOGIN") .assert.elementPresent("@usernameField") .assert.elementPresent("@passwordField") .setValue("@usernameField", username) .setValue("@passwordField", password) .makeScreenshot() .click("@submitButton"); } }; module.exports = { url() { return this.client.api.options.baseURL + "/login"; }, commands: [commands], elements: { title: "form header", usernameField: "form #username", passwordField: "form #password", submitButton: "form [type=submit]", flashError: ".flash .alert-danger div", flashInfo: ".flash .alert-success div" } };