Skip to content

Instantly share code, notes, and snippets.

@martinhbramwell
Created August 5, 2016 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinhbramwell/832f0fa6396c07fe797f898d61e97fa0 to your computer and use it in GitHub Desktop.
Save martinhbramwell/832f0fa6396c07fe797f898d61e97fa0 to your computer and use it in GitHub Desktop.
chimp .e2e_tests/chimp-config.js --browser=phantomjs --ddp=http://localhost:3000 --debug --path=.e2e_tests
[chimp] loaded /home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/chimp-config.js
[chimp] Chimp options are { watch: false,
watchTags: '@focus,@dev,@watch',
watchWithPolling: false,
criticalSteps: null,
criticalTag: '@critical',
server: false,
serverPort: 8060,
serverHost: 'localhost',
sync: true,
offline: false,
path: './features',
format: 'pretty',
tags: '~@ignore',
singleSnippetPerFile: true,
recommendedFilenameSeparator: '_',
chai: false,
screenshotsOnError: true,
screenshotsPath: '.screenshots',
captureAllStepScreenshots: false,
saveScreenshotsToDisk: true,
saveScreenshotsToReport: false,
jsonOutput: null,
compiler: 'js:/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/babel-register.js',
conditionOutput: true,
browser: 'chrome',
platform: 'ANY',
name: '',
user: '',
key: '',
port: null,
host: null,
webdriverio:
{ desiredCapabilities: {},
logLevel: 'silent',
host: '127.0.0.1',
port: 4444,
path: '/wd/hub',
baseUrl: null,
coloredLogs: true,
screenshotPath: null,
waitforTimeout: 15000,
waitforInterval: 15000 },
seleniumStandaloneOptions:
{ version: '2.53.1',
baseURL: 'https://selenium-release.storage.googleapis.com',
drivers: { chrome: [Object], ie: [Object] } },
noSessionReuse: false,
simianResultEndPoint: 'api.simian.io/v1.0/result',
simianAccessToken: false,
simianResultBranch: null,
simianRepositoryId: null,
mocha: false,
mochaTags: '',
mochaGrep: null,
mochaTimeout: 60000,
mochaReporter: 'spec',
mochaSlow: 10000,
jasmine: false,
jasmineConfig:
{ specDir: '.',
specFiles: [ '**/*@(_spec|-spec|Spec).@(js|jsx)' ],
helpers: [ 'support/**/*.@(js|jsx)' ],
stopSpecOnExpectationFailure: false,
random: false },
jasmineReporterConfig: {},
ddp: false,
phantom_w: 1280,
phantom_h: 1024,
log: 'info',
debug: false,
seleniumDebug: null,
debugCucumber: null,
debugBrkCucumber: null,
debugMocha: null,
debugBrkMocha: null }
[chimp] Running...
[chimp] interrupting
[chimp] no processes to interrupt
[chimp][phantom] starting process
[chimp][phantom.stdout] [INFO - 2016-08-05T12:54:19.242Z] GhostDriver - Main - running on port 42933
[chimp][phantom] started successfully
[chimp][cucumber] Cucumber exec options are: [ 'node',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/.bin/cucumber.js',
'.e2e_tests',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/chimp-helper.js',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/world.js',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js',
'-r',
'.e2e_tests',
'--format',
'pretty',
'--tags',
'~@ignore',
'--compiler',
'js:/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/babel-register.js' ]
[chimp][cucumber] Running with [ 'node',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/.bin/cucumber.js',
'.e2e_tests',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/chimp-helper.js',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/world.js',
'-r',
'/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js',
'-r',
'.e2e_tests',
'--format',
'pretty',
'--tags',
'~@ignore',
'--compiler',
'js:/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/babel-register.js' ]
[chimp][ddp] creating DDP wrapper
[chimp][ddp] Connecting to DDP server { host: 'localhost',
port: '3000',
ssl: false,
autoReconnect: true,
autoReconnectTimer: 500,
maintainCollections: true,
ddpVersion: '1',
useSockJs: true }
[chimp][helper] Using the jasmine-expect assertion library
[chimp][hooks] Starting BeforeFeatures
[chimp][helper] getting browser
[chimp][session-manager-factory] options are { host: 'localhost',
port: 42933,
user: undefined,
key: undefined,
browser: 'phantomjs',
deviceName: undefined }
[chimp][session-manager] options are { host: 'localhost',
port: 42933,
user: undefined,
key: undefined,
browser: 'phantomjs',
deviceName: undefined }
[chimp][session-manager] created a new SessionManager { host: 'localhost',
port: 42933,
user: undefined,
key: undefined,
browser: 'phantomjs',
deviceName: undefined }
[chimp][helper] webdriverioOptions are {"desiredCapabilities":{"browserName":"phantomjs","platform":"ANY","name":""},"logLevel":"verbose","host":"localhost","port":42933,"path":"/wd/hub","baseUrl":null,"coloredLogs":true,"screenshotPath":null,"waitforTimeout":15000,"waitforInterval":15000,"sync":true}
[chimp][session-manager] creating webdriver remote
=======================================================================================
Selenium 2.0 / webdriver protocol bindings implementation with helper commands in nodejs.
For a complete list of commands, visit http://webdriver.io/api.html.
=======================================================================================
[chimp][session-manager] checking connection to selenium server
[12:54:22] COMMAND GET "/wd/hub/status"
[12:54:22] DATA {}
[12:54:22] RESULT {"build":{"version":"1.2.0"},"os":{"name":"linux","version":"unknown","arch":"64bit"}}
[chimp][session-manager] Connection to the to selenium server verified
[chimp][session-manager] browser is phantomjs, not reusing a session
[chimp][hooks] init browser
[chimp][hooks] init browser callback
[12:54:22] COMMAND POST "/wd/hub/session"
[12:54:22] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"phantomjs","platform":"ANY","name":"","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.2.3","name":"webdriverio"}}}
[chimp][phantom.stdout] [INFO - 2016-08-05T12:54:22.284Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[chimp][phantom.stdout] [INFO - 2016-08-05T12:54:22.284Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.customHeaders: - {}
[INFO - 2016-08-05T12:54:22.284Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2016-08-05T12:54:22.284Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: bb140c80-5b0b-11e6-a443-655aaf578ba0
[12:54:22] INFO SET SESSION ID bb140c80-5b0b-11e6-a443-655aaf578ba0
[12:54:22] RESULT {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[chimp][helper] init browser
[chimp][helper] init browser callback
[12:54:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:54:22] DATA {}
[12:54:22] RESULT {"height":300,"width":400}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:54:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:54:22] RESULT {"screenWidth":400,"screenHeight":300}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:54:22] DATA {"width":1280,"height":1024}
[12:54:22] RESULT {}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:54:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:54:22] RESULT {"screenWidth":1280,"screenHeight":1024}
[chimp][helper] setup DDP
[chimp][helper] connecting via DDP to http://localhost:3000
[chimp][helper] connecting via DDP had no error
[chimp][hooks] Finished BeforeFeatures
[chimp][hooks] User-defined BeforeFeatures not found, finishing up
Feature: 001 Register a new user
As an unauthorized user
I want to join up
@watch
Scenario: Register a new user
[12:54:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:54:22] DATA {}
[12:54:22] RESULT {"height":1024,"width":1280}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:54:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:54:22] RESULT {"screenWidth":1280,"screenHeight":1024}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:54:22] DATA {"width":1024,"height":480}
[12:54:22] RESULT {}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:54:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:54:22] RESULT {"screenWidth":1024,"screenHeight":480}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:54:22] DATA {"type":"implicit","ms":10000}
[12:54:22] RESULT {}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:54:22] DATA {"type":"page load","ms":10000}
[12:54:22] RESULT {}
[12:54:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:54:22] DATA {"url":"http://localhost:3000/logout"}
[chimp][phantom.stderr] 2016-08-05T12:54:22 [CRITICAL] QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written
[chimp][phantom.stderr] 2016-08-05T12:54:22 [CRITICAL] QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.380Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.380Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/es5-shim.js?hash=e4d68c9ebbcdbd230d16f4bd933ee8dbf2978a22:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.382Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.382Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/promise.js?hash=2d5b025794b9c9e54e5cf6bea71c642ef921a2ed:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.385Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.385Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/ecmascript-runtime.js?hash=e4dd2b138377d446dc7dc3af21bb5bcd4b2b88a3:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.386Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['ecmascript-runtime'].Symbol')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.386Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/babel-compiler.js?hash=aa1ba23957a2a38a24bad15d8eb7dda850adb69a:7)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.391Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.391Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/babel-runtime.js?hash=543034092ecef720d1732d8f72ab489f1877696f:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.392Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.392Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/random.js?hash=c4879267bde8bbc5ba66d23fa420cb239c44fb68:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.392Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.random.Random')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.393Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/mongo-id.js?hash=172813d0ff26d0175642f30557d9980b3d852a17:19)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.394Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.394Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/geojson-utils.js?hash=7214728d388f610508afa2a208b6117470822707:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.398Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['mongo-id'].MongoID')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.398Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/minimongo.js?hash=88217d643bc16fdf3505c6d4b2b8f5ddc400c49a:23)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.399Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.399Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/check.js?hash=bf95dee84c2be9008274d2385c637659760b9057:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.399Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.random.Random')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.400Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/retry.js?hash=91c22616ae67cee99080f81fae9e6083bf7c5711:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.400Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.check.check')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.400Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/ddp-common.js?hash=a99cb35fd21daff658b592895ec8e2da5ee4c434:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.401Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['ecmascript-runtime'].Symbol')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.401Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/reload.js?hash=ad99c3e418c3fdc4fd1e08796369bded98b26b3d:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.406Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.check.check')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.406Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.406Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['ddp-client'].DDP')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.407Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/ddp.js?hash=752b775e282ca59c21ca09b9cc61f5fffb9ea2a1:7)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.408Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.minimongo.LocalCollection')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.408Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/allow-deny.js?hash=11ff6d1a797cb3d6608a96e8ab0bd82a4947ff49:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.409Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['allow-deny'].AllowDeny')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.409Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/mongo.js?hash=ed0b13aca2f180af120dd0cfdba64ac79e2a624f:17)
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.410Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.410Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/reactive-dict.js?hash=2d818560f104189acfa57205ecf42df8a80ab6a7:21)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.410Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['reactive-dict'].ReactiveDict')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.410Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/session.js?hash=9ac45190b217c0c6a6293b0769e5a83f9dc8c003:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.419Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.420Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/jquery.js?hash=22a0055f59bd150c435c5aba34c7c59076b8bcd9:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.422Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['reactive-dict'].ReactiveDict')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.423Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/kadira_flow-router.js?hash=09ea12875d3801955ee70797bf8e4a70feebc570:20)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.424Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.random.Random')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.424Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/localstorage.js?hash=0b3ae3298494da2289abab2377342a1054cfca0b:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.428Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['mongo-id'].MongoID')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.428Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/observe-sequence.js?hash=550c39b36ab0e65194ea03cdc7ecbe99dcdd07f6:19)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.432Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.jquery.$')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.432Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.434Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.random.Random')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.434Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/accounts-base.js?hash=43ca456b0d8f9c9bf4ddb68e92edb4c46498e140:20)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.437Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.random.Random')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.437Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/srp.js?hash=94d5df94b266ef008d0425c828f1715512e429ef:17)
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.438Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['accounts-base'].Accounts')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.438Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/accounts-password.js?hash=26c5712042d53cb92bed4571735603904d1ec8bd:17)
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.439Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not a constructor (evaluating 'new Meteor.Collection(METADATA_COLLECTION)')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.439Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/percolate_find-from-publication.js?hash=cdd2d8613e2629f7e47f60110f20fe0f42b05012:82)
(anonymous function) (http://localhost:3000/packages/percolate_find-from-publication.js?hash=cdd2d8613e2629f7e47f60110f20fe0f42b05012:99)
(anonymous function) (http://localhost:3000/packages/percolate_find-from-publication.js?hash=cdd2d8613e2629f7e47f60110f20fe0f42b05012:103)
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.439Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.check.check')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.440Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/mdg_validation-error.js?hash=517e2f370b928e16001aa6106d90f186cdb81b5c:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.455Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['ddp-client'].DDP')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.455Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/jagi_astronomy.js?hash=56a5171482711ef58a1214196aa7b9e5fb78ce0e:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.457Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['accounts-base'].Accounts')
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.457Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/alanning_roles.js?hash=903a1f148ed6ac8183cb12ec77aa3940396190e6:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.464Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['jagi:astronomy'].Astro')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.464Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/jagi_astronomy-softremove-behavior.js?hash=14efbf96a232cf2bda99240ccef59a7df9d9adc0:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.465Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['jagi:astronomy'].Astro')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.465Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/jagi_astronomy-timestamp-behavior.js?hash=67d4d4d081da5cda7c61b10666766d5a84049d86:17)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.465Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.modules.meteorInstall')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.466Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/webapp.js?hash=b74e2292d6087dc6f77d86b7e71ac0d672b0fbe8:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.466Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['ddp-client'].DDP')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.466Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/livedata.js?hash=e7fb2e783bc81b00b914c2e27966b7b6d3d081b6:7)
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.468Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.blaze.Blaze')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.468Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/spacebars.js?hash=65db8b6a8e3fca189b416de702967b1cb83d57d5:20)
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.469Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.blaze.Blaze')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.469Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/templating.js?hash=f43427e80c4a8a93daf5ed094c8141a0ee19c804:18)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.471Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.blaze.Blaze')
phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:54:23.471Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/ui.js?hash=d0665bbf032532e2284f8843b30500babb10dd4d:7)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.473Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.retry.Retry')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.473Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/autoupdate.js?hash=cd7c85bd6e2795c4352bc0a76604e45642e47c31:19)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.473Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package.mongo.Mongo')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.473Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
global code (http://localhost:3000/packages/global-imports.js?hash=6094b8ce6d9e6b243ba4b6bf9f9387e1f0e17c69:3)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.485Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: ReferenceError: Can't find variable: meteorInstall
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.485Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
global code (http://localhost:3000/app/app.js?hash=016bd66459ccf734aaeac6f2d541f284b7dc5186:1)
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.486Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: TypeError: undefined is not an object (evaluating 'Package['accounts-base'].Accounts')
phantomjs://platform/console++.js:263 in error
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:54:23.486Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
(anonymous function) (http://localhost:3000/packages/service-configuration.js?hash=331fe144dc8f69e5e44f23dd74b9de74ed80c6f3:17)
phantomjs://platform/console++.js:263 in error
[12:54:23] RESULT {}
[12:54:23] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:54:23] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:54:33] RESULT []
[12:54:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:54:38] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[chimp] Detected an unhandledRejection:
[chimp][hooks] Could not provide error hint
[chimp][hooks] Promise: { exception:
{ message: 'Promise was rejected with the following reason: timeout',
type: 'WaitUntilTimeoutError' } }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {"message":"Promise was rejected with the following reason: timeout","type":"WaitUntilTimeoutError"}
[chimp] Detected an unhandledRejection:
[chimp][hooks] TypeError: Cannot read property 'getFileName' of undefined
at isFrameInCucumber (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:9:23)
at Array.<anonymous> (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:15:9)
at TraceModifier._modify (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:44:32)
at Function.prepareStackTrace (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:119:25)
at trackRejection (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1066:32)
at reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1131:5)
at deferred.reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:633:16)
at run (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:87:22)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:100:28
at flush (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/_microtask.js:18:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
[chimp][hooks] Promise: { _c: [], _a: [], _s: 2, _d: true, _v: {}, _h: 0, _n: false }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {}
[12:54:48] RESULT []
Given my email is "yourself.yourorg@gmail.com" and I have opened the registration page, "http://localhost:3000/register"
cucumber event handlers attached via registerHandler are now passed the associated object instead of an event
getPayloadItem will be removed in the next major release
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/0_Given__my_email_is__yourself.yourorg@gmail.com__and_I_have_opened_the_registration_page,__http___localhost_3000_register__(failed).png
[12:55:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:55:22] DATA {}
[12:55:22] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAHgCAYAAAA7YR+mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAL10lEQVR4nO3YwQ3AIBDAsNL9dz6mQEjEniDvrJmZDwAAAHjafzsAAAAAOM8AAAAAgAADAAAAAAIMAAAAAAgwAAAAACDAAAAAAIAAAwAAAAACDAAAAAAIMAAAAAA ... (3950 more bytes)
[chimp][helper] saved screenshot to .screenshots/0_Given__my_email_is__yourself.yourorg@gmail.com__and_I_have_opened_the_registration_page,__http___localhost_3000_register__(failed).png
When I enter my email and the repeated password : "yourpassword",
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/1_When__I_enter_my_email_and_the_repeated_password____yourpassword_,_(failed).png
[12:55:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:55:22] DATA {}
[12:55:22] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAHgCAYAAAA7YR+mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAL10lEQVR4nO3YwQ3AIBDAsNL9dz6mQEjEniDvrJmZDwAAAHjafzsAAAAAOM8AAAAAgAADAAAAAAIMAAAAAAgwAAAAACDAAAAAAIAAAwAAAAACDAAAAAAIMAAAAAA ... (3950 more bytes)
[chimp][helper] saved screenshot to .screenshots/1_When__I_enter_my_email_and_the_repeated_password____yourpassword_,_(failed).png
Then I see the login page submit button : "Login".
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/2_Then__I_see_the_login_page_submit_button____Login_._(failed).png
[12:55:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:55:22] DATA {}
[12:55:22] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAHgCAYAAAA7YR+mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAL10lEQVR4nO3YwQ3AIBDAsNL9dz6mQEjEniDvrJmZDwAAAHjafzsAAAAAOM8AAAAAgAADAAAAAAIMAAAAAAgwAAAAACDAAAAAAIAAAwAAAAACDAAAAAAIMAAAAAA ... (3950 more bytes)
[chimp][helper] saved screenshot to .screenshots/2_Then__I_see_the_login_page_submit_button____Login_._(failed).png
@watch
Scenario: Login new user
[12:55:22] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:55:22] DATA {}
[12:55:22] RESULT {"height":480,"width":1024}
[12:55:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:55:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:55:22] RESULT {"screenWidth":1024,"screenHeight":480}
[12:55:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:55:22] DATA {"width":1024,"height":480}
[12:55:22] RESULT {}
[12:55:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:55:22] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:55:22] RESULT {"screenWidth":1024,"screenHeight":480}
[12:55:22] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:55:22] DATA {"url":"http://localhost:3000/logout"}
[12:55:23] RESULT {}
[12:55:23] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:55:23] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:55:23] RESULT [{"ELEMENT":":wdc:1470401723572"}]
[12:55:23] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723572/displayed"
[12:55:23] DATA {}
[12:55:23] RESULT true
[12:55:23] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:55:23] DATA {"url":"http://localhost:3000/login"}
[12:55:23] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:55:23] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:55:23] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:55:23] RESULT [{"ELEMENT":":wdc:1470401723974"}]
[12:55:23] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723974/clear"
[12:55:23] DATA {}
[12:55:24] RESULT null
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723974/value"
[12:55:24] DATA {"value":["y","o","u","r","s","e","l","f",".","y","(16 more items)"]}
[12:55:24] RESULT null
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:55:24] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:55:24] RESULT [{"ELEMENT":":wdc:1470401723975"}]
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723975/clear"
[12:55:24] DATA {}
[12:55:24] RESULT null
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723975/value"
[12:55:24] DATA {"value":["y","o","u","r","p","a","s","s","w","o","(2 more items)"]}
[12:55:24] RESULT null
When I provide my email "yourself.yourorg@gmail.com" and password "yourpassword"
Submitting form . . .
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:55:24] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:55:24] RESULT {"ELEMENT":":wdc:1470401723976"}
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401723976/submit"
[12:55:24] DATA {}
[12:55:24] RESULT {}
. . . submitted form. Waiting for account page ...
[12:55:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:55:24] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:55:34] RESULT []
[chimp] Detected an unhandledRejection:
[chimp][hooks] Could not provide error hint
[chimp][hooks] Promise: { exception:
{ message: 'Promise was rejected with the following reason: timeout',
type: 'WaitUntilTimeoutError' } }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {"message":"Promise was rejected with the following reason: timeout","type":"WaitUntilTimeoutError"}
[chimp] Detected an unhandledRejection:
[chimp][hooks] TypeError: Cannot read property 'getFileName' of undefined
at isFrameInCucumber (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:9:23)
at Array.<anonymous> (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:15:9)
at TraceModifier._modify (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:44:32)
at Function.prepareStackTrace (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:119:25)
at trackRejection (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1066:32)
at reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1131:5)
at deferred.reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:633:16)
at run (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:87:22)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:100:28
at flush (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/_microtask.js:18:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
[chimp][hooks] Promise: { _c: [], _a: [], _s: 2, _d: true, _v: {}, _h: 0, _n: false }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {}
And I submit the form
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/3_And__I_submit_the_form_(failed).png
[12:56:24] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:56:24] DATA {}
[12:56:24] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJ5CAYAAAAw4EKwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzddXRU19rH8W8mLsRDhAAxXBIguLbQQpEWWloqt5Ta7W1LS3vr7u7+1m7l1m6VClaKu7uFQEICcfdMkpn3jyRDhggBAoTO77NWVzNzbM+e4eyzn/P ... (116850 more bytes)
[chimp][helper] saved screenshot to .screenshots/3_And__I_submit_the_form_(failed).png
Then I see my user drop-down menu.
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/4_Then__I_see_my_user_drop_down_menu._(failed).png
[12:56:24] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:56:24] DATA {}
[12:56:24] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJ5CAYAAAAw4EKwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzddXRU19rH8W8mLsRDhAAxXBIguLbQQpEWWloqt5Ta7W1LS3vr7u7+1m7l1m6VClaKu7uFQEICcfdMkpn3jyRDhggBAoTO77NWVzNzbM+e4eyzn/P ... (116850 more bytes)
[chimp][helper] saved screenshot to .screenshots/4_Then__I_see_my_user_drop_down_menu._(failed).png
@watch
Scenario: Logout new user
[12:56:24] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:24] DATA {"url":"http://localhost:3000/account"}
[12:56:25] RESULT {}
Given I am at my personal account page, "http://localhost:3000/account"
[12:56:25] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:25] DATA {"url":"http://localhost:3000/logout"}
[12:56:25] RESULT {}
When I logout,
[12:56:25] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:25] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:25] RESULT [{"ELEMENT":":wdc:1470401785984"}]
[12:56:25] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:25] DATA {"using":"xpath","value":"//input[@data-cuke=\"login-button\"]"}
[12:56:26] RESULT [{"ELEMENT":":wdc:1470401785985"}]
[12:56:26] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401785985/attribute/value"
[12:56:26] DATA {}
[12:56:26] RESULT "Login"
Then I see the login page submit button : "Login".
Feature: 002 Manage colors
As a visitor
I want to update or create a new color
@watch
Scenario: Log in as a staff member
[12:56:26] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:26] DATA {}
[12:56:26] RESULT {"height":480,"width":1024}
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:26] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:26] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:26] DATA {"width":1024,"height":480}
[12:56:26] RESULT {}
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:26] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:26] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:26] DATA {"url":"http://localhost:3000/logout"}
[12:56:26] RESULT {}
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:26] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:26] RESULT [{"ELEMENT":":wdc:1470401786495"}]
[12:56:26] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786495/displayed"
[12:56:26] DATA {}
[12:56:26] RESULT true
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:26] DATA {"url":"http://localhost:3000/login"}
[12:56:26] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:26] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:26] RESULT [{"ELEMENT":":wdc:1470401786923"}]
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786923/clear"
[12:56:26] DATA {}
[12:56:26] RESULT null
[12:56:26] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786923/value"
[12:56:26] DATA {"value":["s","t","a","f","f","@","e","x","a","m","(7 more items)"]}
[12:56:27] RESULT null
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:27] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:56:27] RESULT [{"ELEMENT":":wdc:1470401786924"}]
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786924/clear"
[12:56:27] DATA {}
[12:56:27] RESULT null
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786924/value"
[12:56:27] DATA {"value":["a","p","p","l","e","_","0","1"]}
[12:56:27] RESULT null
When I provide my email "staff@example.com" and password "apple_01"
Submitting form . . .
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:27] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:56:27] RESULT {"ELEMENT":":wdc:1470401786925"}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786925/submit"
[12:56:27] DATA {}
[12:56:27] RESULT {}
. . . submitted form. Waiting for account page ...
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:27] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:56:27] RESULT [{"ELEMENT":":wdc:1470401786926"}]
. . . found account page.
And I submit the form
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:27] DATA {"using":"xpath","value":"//x-cuke[@id=\"acct-email\"]"}
[12:56:27] RESULT [{"ELEMENT":":wdc:1470401786927"}]
[12:56:27] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401786927/text"
[12:56:27] DATA {}
[12:56:27] RESULT "staff@example.com"
Then I see my user drop-down menu.
@watch
Scenario: Create a new color
[12:56:27] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:27] DATA {}
[12:56:27] RESULT {"height":480,"width":1024}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:27] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:27] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:27] DATA {"width":1024,"height":480}
[12:56:27] RESULT {}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:27] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:27] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:27] DATA {"type":"implicit","ms":2000}
[12:56:27] RESULT {}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:27] DATA {"type":"page load","ms":2000}
[12:56:27] RESULT {}
[12:56:27] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:27] DATA {"url":"http://localhost:3000/colors/add"}
[12:56:28] RESULT {}
Given I have opened the 'add colors' page : "http://localhost:3000/colors/add"
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788305"}]
[12:56:28] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788305/enabled"
[12:56:28] DATA {}
[12:56:28] RESULT true
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//input[@data-cuke=\"title\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788306"}]
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788306/clear"
[12:56:28] DATA {}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788306/value"
[12:56:28] DATA {"value":["P","i","n","k"]}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//input[@data-cuke=\"age\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788307"}]
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788307/clear"
[12:56:28] DATA {}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788307/value"
[12:56:28] DATA {"value":["2","2"]}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//textarea[@data-cuke=\"content\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788308"}]
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788308/clear"
[12:56:28] DATA {}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788308/value"
[12:56:28] DATA {"value":["P","i","n","k"," ","i","s"," ","t","h","(11 more items)"]}
[12:56:28] RESULT null
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:28] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:28] RESULT {"ELEMENT":":wdc:1470401788305"}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788305/click"
[12:56:28] DATA {}
[12:56:28] RESULT {}
When I create a "22" years old "Pink" item with text "Pink is the new Black",
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//x-cuke[@id=\"age\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788309"}]
[12:56:28] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788309/text"
[12:56:28] DATA {}
[12:56:28] RESULT "22 years old."
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//x-cuke[@id=\"title\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788310"}]
[12:56:28] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788310/text"
[12:56:28] DATA {}
[12:56:28] RESULT "Pink"
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:28] DATA {"using":"xpath","value":"//x-cuke[@id=\"content\"]"}
[12:56:28] RESULT [{"ELEMENT":":wdc:1470401788311"}]
[12:56:28] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401788311/text"
[12:56:28] DATA {}
[12:56:28] RESULT "Pink is the new Black"
Then I see a new record with the same title, age and contents.
@watch
Scenario: Verify field validation
[12:56:28] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:28] DATA {}
[12:56:28] RESULT {"height":480,"width":1024}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:28] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:28] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:28] DATA {"width":1024,"height":480}
[12:56:28] RESULT {}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:28] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:28] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:28] DATA {"ms":1000}
[12:56:28] RESULT {}
[12:56:28] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:28] DATA {"url":"http://localhost:3000/colors"}
[12:56:29] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:29] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:29] RESULT [{"ELEMENT":":wdc:1470401789403"}]
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:29] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:29] RESULT {"ELEMENT":":wdc:1470401789403"}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789403/click"
[12:56:29] DATA {}
[12:56:29] RESULT {}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:29] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:29] RESULT [{"ELEMENT":":wdc:1470401789404"}]
[12:56:29] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789404/enabled"
[12:56:29] DATA {}
[12:56:29] RESULT true
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:29] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:29] RESULT {"ELEMENT":":wdc:1470401789404"}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789404/click"
[12:56:29] DATA {}
[12:56:29] RESULT {}
And I have elected to edit the "Pink" item,
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:29] DATA {"using":"xpath","value":"//input[@data-cuke=\"age\"]"}
[12:56:29] RESULT [{"ELEMENT":":wdc:1470401789405"}]
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789405/clear"
[12:56:29] DATA {}
[12:56:29] RESULT null
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789405/value"
[12:56:29] DATA {"value":["1","2"]}
[12:56:29] RESULT null
When I set 'Age' to "12"
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:29] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:29] RESULT {"ELEMENT":":wdc:1470401789406"}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789406/click"
[12:56:29] DATA {}
[12:56:29] RESULT {}
And I save the item,
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:29] DATA {"using":"xpath","value":"//span[@class=\"help-block error-block\"]"}
[12:56:29] RESULT [{"ELEMENT":":wdc:1470401789407"}]
[12:56:29] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401789407/text"
[12:56:29] DATA {}
[12:56:29] RESULT "Nope. 12 is too young, Pool Party Age : 21"
Then I see the validation hint "Nope. 12 is too young, Pool Party Age : 21".
@watch
Scenario: Update color
[12:56:29] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:29] DATA {}
[12:56:29] RESULT {"height":480,"width":1024}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:29] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:29] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:29] DATA {"width":1024,"height":480}
[12:56:29] RESULT {}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:29] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:29] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:29] DATA {"ms":1000}
[12:56:29] RESULT {}
[12:56:29] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:29] DATA {"url":"http://localhost:3000/colors"}
[12:56:30] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790278"}]
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:30] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:30] RESULT {"ELEMENT":":wdc:1470401790278"}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790278/click"
[12:56:30] DATA {}
[12:56:30] RESULT {}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790279"}]
[12:56:30] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790279/enabled"
[12:56:30] DATA {}
[12:56:30] RESULT true
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:30] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:30] RESULT {"ELEMENT":":wdc:1470401790279"}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790279/click"
[12:56:30] DATA {}
[12:56:30] RESULT {}
And I have elected to edit the "Pink" item,
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//input[@data-cuke=\"age\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790280"}]
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790280/clear"
[12:56:30] DATA {}
[12:56:30] RESULT null
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790280/value"
[12:56:30] DATA {"value":["4","2"]}
[12:56:30] RESULT null
When I set 'Age' to "42"
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//textarea[@data-cuke=\"content\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790281"}]
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790281/clear"
[12:56:30] DATA {}
[12:56:30] RESULT null
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790281/value"
[12:56:30] DATA {"value":["P","i","n","k"," ","i","s"," ","t","h","(18 more items)"]}
[12:56:30] RESULT null
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:30] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:30] RESULT {"ELEMENT":":wdc:1470401790282"}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790282/click"
[12:56:30] DATA {}
[12:56:30] RESULT {}
And I save the item with new content "Pink is the new ---> Orange!",
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//x-cuke[@id=\"title\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790283"}]
[12:56:30] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790283/enabled"
[12:56:30] DATA {}
[12:56:30] RESULT true
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:30] DATA {"using":"xpath","value":"//x-cuke[@id=\"content\"]"}
[12:56:30] RESULT [{"ELEMENT":":wdc:1470401790284"}]
[12:56:30] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401790284/text"
[12:56:30] DATA {}
[12:56:30] RESULT "Pink is the new ---> Orange!"
Then I see the record with the new content.
@watch
Scenario: Fail to update color
[12:56:30] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:30] DATA {}
[12:56:30] RESULT {"height":480,"width":1024}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:30] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:30] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:30] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:30] DATA {"width":1024,"height":480}
[12:56:30] RESULT {}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:31] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:31] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:31] DATA {"ms":1000}
[12:56:31] RESULT {}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:31] DATA {"url":"http://localhost:3000/colors"}
[12:56:31] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:31] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:31] RESULT [{"ELEMENT":":wdc:1470401791422"}]
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:31] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:31] RESULT {"ELEMENT":":wdc:1470401791422"}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791422/click"
[12:56:31] DATA {}
[12:56:31] RESULT {}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:31] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:31] RESULT [{"ELEMENT":":wdc:1470401791423"}]
[12:56:31] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791423/enabled"
[12:56:31] DATA {}
[12:56:31] RESULT true
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:31] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:31] RESULT {"ELEMENT":":wdc:1470401791423"}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791423/click"
[12:56:31] DATA {}
[12:56:31] RESULT {}
And I have elected to edit the "Pink" item,
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:31] DATA {"using":"xpath","value":"//textarea[@data-cuke=\"content\"]"}
[12:56:31] RESULT [{"ELEMENT":":wdc:1470401791424"}]
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791424/clear"
[12:56:31] DATA {}
[12:56:31] RESULT null
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791424/value"
[12:56:31] DATA {"value":["P","i","n","k"," ","i","s"," ","t","h","(16 more items)"]}
[12:56:31] RESULT null
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:31] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:31] RESULT {"ELEMENT":":wdc:1470401791425"}
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791425/click"
[12:56:31] DATA {}
[chimp][phantom.stdout] [ERROR - 2016-08-05T12:56:31.908Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - msg: %cadd%c - I knew it! It's YOUR fault -- again! [ Remedy : cut the crap ]%c º (in file : /client/modules/_colors/actions/colors.js ) color: #e74c3c;text-decoration: underline color: #e74c3c color: #7f8c8d
[chimp][phantom.stdout] phantomjs://platform/console++.js:263 in error
[ERROR - 2016-08-05T12:56:31.908Z] Session [bb140c80-5b0b-11e6-a443-655aaf578ba0] - page.onError - stack:
a (http://localhost:3000/packages/modules.js?hash=77c3839aa87f3bfa63fbdae398cb7848913c3d0b:3059)
phantomjs://platform/console++.js:263 in error
[12:56:31] RESULT {}
When I save the item with new content "Pink is the new ---> crap!",
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:31] DATA {"using":"xpath","value":"//div[@data-cuke=\"bad-content\"]"}
[12:56:31] RESULT [{"ELEMENT":":wdc:1470401791426"}]
[12:56:31] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791426/text"
[12:56:31] DATA {}
[12:56:31] RESULT "I knew it! It's YOUR fault -- again! [ Remedy : cut the crap ]"
[12:56:31] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:31] DATA {"using":"xpath","value":"//div[@data-cuke=\"bad-content\"]"}
[12:56:32] RESULT [{"ELEMENT":":wdc:1470401791426"}]
[12:56:32] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401791426/text"
[12:56:32] DATA {}
[12:56:32] RESULT "I knew it! It's YOUR fault -- again! [ Remedy : cut the crap ]"
Then I see the message, "I knew it! It's YOUR fault -- again! [ Remedy : cut the crap ]".
@watch
Scenario: Fail to delete color
[12:56:32] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:32] DATA {}
[12:56:32] RESULT {"height":480,"width":1024}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:32] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:32] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:32] DATA {"width":1024,"height":480}
[12:56:32] RESULT {}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:32] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:32] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:32] DATA {"ms":1000}
[12:56:32] RESULT {}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:32] DATA {"url":"http://localhost:3000/colors"}
[12:56:32] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:32] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:32] RESULT [{"ELEMENT":":wdc:1470401792663"}]
[12:56:32] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401792663/enabled"
[12:56:32] DATA {}
[12:56:32] RESULT true
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:32] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:32] RESULT {"ELEMENT":":wdc:1470401792663"}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401792663/click"
[12:56:32] DATA {}
[12:56:32] RESULT {}
And I have elected to view the "Pink" item,
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:32] DATA {"using":"xpath","value":"//a[@data-cuke=\"delete-color\"]"}
[12:56:32] RESULT [{"ELEMENT":":wdc:1470401792664"}]
When I elect to delete the item,
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:32] DATA {"using":"xpath","value":"//a[@data-cuke=\"delete-color\"]"}
[12:56:32] RESULT [{"ELEMENT":":wdc:1470401792664"}]
[12:56:32] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401792664/enabled"
[12:56:32] DATA {}
[12:56:32] RESULT true
Then I see it is disabled.
@watch
Scenario: Log in as a registered member
[12:56:32] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:32] DATA {}
[12:56:32] RESULT {"height":480,"width":1024}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:32] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:32] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:32] DATA {"width":1024,"height":480}
[12:56:32] RESULT {}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:32] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:32] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:32] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:32] DATA {"url":"http://localhost:3000/logout"}
[12:56:33] RESULT {}
[12:56:33] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:33] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:33] RESULT [{"ELEMENT":":wdc:1470401793293"}]
[12:56:33] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793293/displayed"
[12:56:33] DATA {}
[12:56:33] RESULT true
[12:56:33] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:33] DATA {"url":"http://localhost:3000/login"}
[12:56:33] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:56:33] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:33] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:33] RESULT [{"ELEMENT":":wdc:1470401793721"}]
[12:56:33] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793721/clear"
[12:56:33] DATA {}
[12:56:33] RESULT null
[12:56:33] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793721/value"
[12:56:33] DATA {"value":["r","e","g","i","s","t","e","r","e","d","(12 more items)"]}
[12:56:34] RESULT null
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:34] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:56:34] RESULT [{"ELEMENT":":wdc:1470401793722"}]
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793722/clear"
[12:56:34] DATA {}
[12:56:34] RESULT null
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793722/value"
[12:56:34] DATA {"value":["a","p","p","l","e","_","0","1"]}
[12:56:34] RESULT null
When I provide my email "registered@example.com" and password "apple_01"
Submitting form . . .
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:34] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:56:34] RESULT {"ELEMENT":":wdc:1470401793723"}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793723/submit"
[12:56:34] DATA {}
[12:56:34] RESULT {}
. . . submitted form. Waiting for account page ...
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:34] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:56:34] RESULT [{"ELEMENT":":wdc:1470401793724"}]
. . . found account page.
And I submit the form
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:34] DATA {"using":"xpath","value":"//x-cuke[@id=\"acct-email\"]"}
[12:56:34] RESULT [{"ELEMENT":":wdc:1470401793725"}]
[12:56:34] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401793725/text"
[12:56:34] DATA {}
[12:56:34] RESULT "registered@example.com"
Then I see my user drop-down menu.
@watch
Scenario: Unable to update color
[12:56:34] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:34] DATA {}
[12:56:34] RESULT {"height":480,"width":1024}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:34] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:34] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:34] DATA {"width":1024,"height":480}
[12:56:34] RESULT {}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:34] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:34] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:34] DATA {"ms":1000}
[12:56:34] RESULT {}
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:34] DATA {"url":"http://localhost:3000/colors"}
[12:56:34] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:34] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:34] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:35] RESULT [{"ELEMENT":":wdc:1470401795021"}]
[12:56:35] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401795021/enabled"
[12:56:35] DATA {}
[12:56:35] RESULT true
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:35] DATA {"using":"xpath","value":"//a[@data-cuke=\"Pink\"]"}
[12:56:35] RESULT {"ELEMENT":":wdc:1470401795021"}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401795021/click"
[12:56:35] DATA {}
[12:56:35] RESULT {}
And I have elected to view the "Pink" item,
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:35] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:35] RESULT [{"ELEMENT":":wdc:1470401795022"}]
And I attempt to edit the item,
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:35] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:35] RESULT [{"ELEMENT":":wdc:1470401795022"}]
[12:56:35] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401795022/enabled"
[12:56:35] DATA {}
[12:56:35] RESULT true
Then I see it is disabled.
@watch
Scenario: Forbidden to create a new color
[12:56:35] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:35] DATA {}
[12:56:35] RESULT {"height":480,"width":1024}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:35] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:35] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:35] DATA {"width":1024,"height":480}
[12:56:35] RESULT {}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:35] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:35] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:35] DATA {"type":"implicit","ms":2000}
[12:56:35] RESULT {}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:35] DATA {"type":"page load","ms":2000}
[12:56:35] RESULT {}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:35] DATA {"url":"http://localhost:3000/colors/add"}
[12:56:35] RESULT {}
Given I have opened the colors editor page : "http://localhost:3000/colors/add"
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:35] DATA {"using":"xpath","value":"//x-cuke[@id=\"warning\"]"}
[12:56:35] RESULT [{"ELEMENT":":wdc:1470401795603"}]
[12:56:35] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401795603/text"
[12:56:35] DATA {}
[12:56:35] RESULT "You haven't been authorized to access this page."
Then I see the warning "You haven't been authorized to access this page."
@watch
Scenario: Log in as a member
[12:56:35] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:35] DATA {}
[12:56:35] RESULT {"height":480,"width":1024}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:35] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:35] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:35] DATA {"width":1024,"height":480}
[12:56:35] RESULT {}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:35] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:35] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:35] DATA {"url":"http://localhost:3000/logout"}
[12:56:35] RESULT {}
[12:56:35] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:35] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:36] RESULT [{"ELEMENT":":wdc:1470401796118"}]
[12:56:36] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796118/displayed"
[12:56:36] DATA {}
[12:56:36] RESULT true
[12:56:36] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:36] DATA {"url":"http://localhost:3000/login"}
[12:56:36] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:56:36] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:36] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:36] RESULT [{"ELEMENT":":wdc:1470401796622"}]
[12:56:36] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796622/clear"
[12:56:36] DATA {}
[12:56:36] RESULT null
[12:56:36] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796622/value"
[12:56:36] DATA {"value":["m","e","m","b","e","r","@","e","x","a","(8 more items)"]}
[12:56:37] RESULT null
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:37] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:56:37] RESULT [{"ELEMENT":":wdc:1470401796623"}]
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796623/clear"
[12:56:37] DATA {}
[12:56:37] RESULT null
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796623/value"
[12:56:37] DATA {"value":["a","p","p","l","e","_","0","1"]}
[12:56:37] RESULT null
When I provide my email "member@example.com" and password "apple_01"
Submitting form . . .
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:37] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:56:37] RESULT {"ELEMENT":":wdc:1470401796624"}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796624/submit"
[12:56:37] DATA {}
[12:56:37] RESULT {}
. . . submitted form. Waiting for account page ...
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:37] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:56:37] RESULT [{"ELEMENT":":wdc:1470401796625"}]
. . . found account page.
And I submit the form
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:37] DATA {"using":"xpath","value":"//x-cuke[@id=\"acct-email\"]"}
[12:56:37] RESULT [{"ELEMENT":":wdc:1470401796626"}]
[12:56:37] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401796626/text"
[12:56:37] DATA {}
[12:56:37] RESULT "member@example.com"
Then I see my user drop-down menu.
@watch
Scenario: Create a new color
[12:56:37] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:37] DATA {}
[12:56:37] RESULT {"height":480,"width":1024}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:37] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:37] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:37] DATA {"width":1024,"height":480}
[12:56:37] RESULT {}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:37] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:37] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:37] DATA {"type":"implicit","ms":2000}
[12:56:37] RESULT {}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts"
[12:56:37] DATA {"type":"page load","ms":2000}
[12:56:37] RESULT {}
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:37] DATA {"url":"http://localhost:3000/colors/add"}
[12:56:37] RESULT {}
Given I have opened the 'add colors' page : "http://localhost:3000/colors/add"
[12:56:37] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:37] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798051"}]
[12:56:38] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798051/enabled"
[12:56:38] DATA {}
[12:56:38] RESULT true
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//input[@data-cuke=\"title\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798052"}]
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798052/clear"
[12:56:38] DATA {}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798052/value"
[12:56:38] DATA {"value":["O","r","a","n","g","e"]}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//input[@data-cuke=\"age\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798053"}]
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798053/clear"
[12:56:38] DATA {}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798053/value"
[12:56:38] DATA {"value":["3","2"]}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//textarea[@data-cuke=\"content\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798054"}]
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798054/clear"
[12:56:38] DATA {}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798054/value"
[12:56:38] DATA {"value":["O","r","a","n","g","e"," ","i","s"," ","(15 more items)"]}
[12:56:38] RESULT null
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:38] DATA {"using":"xpath","value":"//button[@data-cuke=\"save-color\"]"}
[12:56:38] RESULT {"ELEMENT":":wdc:1470401798051"}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798051/click"
[12:56:38] DATA {}
[12:56:38] RESULT {}
When I create a "32" years old "Orange" item with text "Orange is the new Boredom",
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//x-cuke[@id=\"age\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798055"}]
[12:56:38] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798055/text"
[12:56:38] DATA {}
[12:56:38] RESULT "32 years old."
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//x-cuke[@id=\"title\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798056"}]
[12:56:38] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798056/text"
[12:56:38] DATA {}
[12:56:38] RESULT "Orange"
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:38] DATA {"using":"xpath","value":"//x-cuke[@id=\"content\"]"}
[12:56:38] RESULT [{"ELEMENT":":wdc:1470401798057"}]
[12:56:38] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401798057/text"
[12:56:38] DATA {}
[12:56:38] RESULT "Orange is the new Boredom"
Then I see a new record with the same title, age and contents.
@watch
Scenario: Unable to update color
[12:56:38] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:38] DATA {}
[12:56:38] RESULT {"height":480,"width":1024}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:38] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:38] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:38] DATA {"width":1024,"height":480}
[12:56:38] RESULT {}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:38] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:38] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:38] DATA {"ms":1000}
[12:56:38] RESULT {}
[12:56:38] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:38] DATA {"url":"http://localhost:3000/colors"}
[12:56:39] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:39] DATA {"using":"xpath","value":"//a[@data-cuke=\"Orange\"]"}
[12:56:39] RESULT [{"ELEMENT":":wdc:1470401799183"}]
[12:56:39] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401799183/enabled"
[12:56:39] DATA {}
[12:56:39] RESULT true
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:39] DATA {"using":"xpath","value":"//a[@data-cuke=\"Orange\"]"}
[12:56:39] RESULT {"ELEMENT":":wdc:1470401799183"}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401799183/click"
[12:56:39] DATA {}
[12:56:39] RESULT {}
And I have elected to view the "Orange" item,
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:39] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:39] RESULT [{"ELEMENT":":wdc:1470401799184"}]
When I attempt to edit the item,
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:39] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-color\"]"}
[12:56:39] RESULT [{"ELEMENT":":wdc:1470401799184"}]
[12:56:39] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401799184/enabled"
[12:56:39] DATA {}
[12:56:39] RESULT true
Then I see it is disabled.
@watch
Scenario: Log in as an administrator
[12:56:39] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:39] DATA {}
[12:56:39] RESULT {"height":480,"width":1024}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:39] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:39] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:39] DATA {"width":1024,"height":480}
[12:56:39] RESULT {}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:39] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:39] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:39] DATA {"url":"http://localhost:3000/logout"}
[12:56:39] RESULT {}
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:39] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:39] RESULT [{"ELEMENT":":wdc:1470401799798"}]
[12:56:39] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401799798/displayed"
[12:56:39] DATA {}
[12:56:39] RESULT true
[12:56:39] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:39] DATA {"url":"http://localhost:3000/login"}
[12:56:40] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:40] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:40] RESULT [{"ELEMENT":":wdc:1470401800176"}]
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800176/clear"
[12:56:40] DATA {}
[12:56:40] RESULT null
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800176/value"
[12:56:40] DATA {"value":["a","d","m","i","n","i","s","t","r","a","(15 more items)"]}
[12:56:40] RESULT null
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:40] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:56:40] RESULT [{"ELEMENT":":wdc:1470401800177"}]
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800177/clear"
[12:56:40] DATA {}
[12:56:40] RESULT null
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800177/value"
[12:56:40] DATA {"value":["a","p","p","l","e","_","0","1"]}
[12:56:40] RESULT null
When I provide my email "administrator@example.com" and password "apple_01"
Submitting form . . .
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:40] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:56:40] RESULT {"ELEMENT":":wdc:1470401800178"}
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800178/submit"
[12:56:40] DATA {}
[12:56:40] RESULT {}
. . . submitted form. Waiting for account page ...
[12:56:40] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:40] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:56:41] RESULT [{"ELEMENT":":wdc:1470401800179"}]
. . . found account page.
And I submit the form
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:41] DATA {"using":"xpath","value":"//x-cuke[@id=\"acct-email\"]"}
[12:56:41] RESULT [{"ELEMENT":":wdc:1470401800180"}]
[12:56:41] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401800180/text"
[12:56:41] DATA {}
[12:56:41] RESULT "administrator@example.com"
Then I see my user drop-down menu.
@watch
Scenario: Hide color
[12:56:41] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:41] DATA {}
[12:56:41] RESULT {"height":480,"width":1024}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:41] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:41] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:41] DATA {"width":1024,"height":480}
[12:56:41] RESULT {}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:41] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:41] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/timeouts/implicit_wait"
[12:56:41] DATA {"ms":1000}
[12:56:41] RESULT {}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:41] DATA {"url":"http://localhost:3000/colors"}
[12:56:41] RESULT {}
Given I have opened the colors list page : "http://localhost:3000/colors"
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:41] DATA {"using":"xpath","value":"//a[@data-cuke=\"Orange\"]"}
[12:56:41] RESULT [{"ELEMENT":":wdc:1470401801630"}]
[12:56:41] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401801630/enabled"
[12:56:41] DATA {}
[12:56:41] RESULT true
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:41] DATA {"using":"xpath","value":"//a[@data-cuke=\"Orange\"]"}
[12:56:41] RESULT {"ELEMENT":":wdc:1470401801630"}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401801630/click"
[12:56:41] DATA {}
[12:56:41] RESULT {}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:41] DATA {"using":"xpath","value":"//a[@data-cuke=\"delete-color\"]"}
[12:56:41] RESULT [{"ELEMENT":":wdc:1470401801631"}]
[12:56:41] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401801631/enabled"
[12:56:41] DATA {}
[12:56:41] RESULT true
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:41] DATA {"using":"xpath","value":"//a[@data-cuke=\"delete-color\"]"}
[12:56:41] RESULT {"ELEMENT":":wdc:1470401801631"}
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401801631/click"
[12:56:41] DATA {}
[12:56:41] RESULT {}
And I have elected to "delete" the "Orange" item.
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:41] DATA {"using":"xpath","value":"//ul[@data-cuke=\"colors-list\"]"}
[12:56:41] RESULT [{"ELEMENT":":wdc:1470401801632"}]
[12:56:41] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401801632/enabled"
[12:56:41] DATA {}
[12:56:41] RESULT true
[12:56:41] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:41] DATA {"using":"xpath","value":"//a[@data-cuke=\"Orange\"]"}
[12:56:42] RESULT []
Then I no longer see that color record.
Feature: 003 User Management
As an authorized user
I want to create, view, update and delete users
@watch
Scenario: Log in as administrator
[12:56:42] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:42] DATA {}
[12:56:42] RESULT {"height":480,"width":1024}
[12:56:42] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:42] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:42] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:42] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:56:42] DATA {"width":1024,"height":480}
[12:56:42] RESULT {}
[12:56:42] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:56:42] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:56:42] RESULT {"screenWidth":1024,"screenHeight":480}
[12:56:42] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:42] DATA {"url":"http://localhost:3000/logout"}
[12:56:43] RESULT {}
[12:56:43] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:43] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:56:43] RESULT [{"ELEMENT":":wdc:1470401803402"}]
[12:56:43] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803402/displayed"
[12:56:43] DATA {}
[12:56:43] RESULT true
[12:56:43] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:43] DATA {"url":"http://localhost:3000/login"}
[12:56:43] RESULT {}
Given I have opened the login page : "http://localhost:3000/login"
[12:56:43] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:43] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:43] RESULT [{"ELEMENT":":wdc:1470401803828"}]
[12:56:43] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803828/clear"
[12:56:43] DATA {}
[12:56:43] RESULT null
[12:56:43] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803828/value"
[12:56:43] DATA {"value":["a","d","m","i","n","i","s","t","r","a","(15 more items)"]}
[12:56:44] RESULT null
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:44] DATA {"using":"xpath","value":"//input[@data-cuke=\"password\"]"}
[12:56:44] RESULT [{"ELEMENT":":wdc:1470401803829"}]
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803829/clear"
[12:56:44] DATA {}
[12:56:44] RESULT null
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803829/value"
[12:56:44] DATA {"value":["a","p","p","l","e","_","0","1"]}
[12:56:44] RESULT null
When I provide my email "administrator@example.com" and password "apple_01"
Submitting form . . .
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:44] DATA {"using":"xpath","value":"//form[@data-cuke=\"login\"]"}
[12:56:44] RESULT {"ELEMENT":":wdc:1470401803830"}
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803830/submit"
[12:56:44] DATA {}
[12:56:44] RESULT {}
. . . submitted form. Waiting for account page ...
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:44] DATA {"using":"xpath","value":"//x-cuke[@id=\"account-page\"]"}
[12:56:44] RESULT [{"ELEMENT":":wdc:1470401803831"}]
. . . found account page.
And I submit the form
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:44] DATA {"using":"xpath","value":"//x-cuke[@id=\"acct-email\"]"}
[12:56:44] RESULT [{"ELEMENT":":wdc:1470401803832"}]
[12:56:44] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401803832/text"
[12:56:44] DATA {}
[12:56:44] RESULT "administrator@example.com"
Then I see my user drop-down menu.
@watch
Scenario: Create a new user
[12:56:44] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:44] DATA {"url":"http://localhost:3000/users/add"}
[12:56:45] RESULT {}
Given I have opened the create user page : "http://localhost:3000/users/add"
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//h3[@data-cuke=\"user-form-title\" and contains(text(), \"Add new record\")]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805086"}]
And seen the title "Add new record"
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"firstName\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805087"}]
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805087/clear"
[12:56:45] DATA {}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805087/value"
[12:56:45] DATA {"value":["J","e","n","n","y"]}
[12:56:45] RESULT null
When I provide the user's name "Jenny",
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"lastName\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805088"}]
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805088/clear"
[12:56:45] DATA {}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805088/value"
[12:56:45] DATA {"value":["J","o","n","s","o","n"]}
[12:56:45] RESULT null
And family name "Jonson",
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"email\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805089"}]
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805089/clear"
[12:56:45] DATA {}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805089/value"
[12:56:45] DATA {"value":["j","j","@","g","m","a","i","l",".","c","(2 more items)"]}
[12:56:45] RESULT null
And her email "jj@gmail.com",
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"pword1\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805090"}]
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805090/clear"
[12:56:45] DATA {}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805090/value"
[12:56:45] DATA {"value":["j","j","j","j","7","7","7","7"]}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"pword2\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805091"}]
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805091/clear"
[12:56:45] DATA {}
[12:56:45] RESULT null
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805091/value"
[12:56:45] DATA {"value":["j","j","j","j","7","7","7","7"]}
[12:56:45] RESULT null
And her password "jjjj7777",
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:45] DATA {"using":"xpath","value":"//input[@data-cuke=\"role\" and @value=\"Member\"]"}
[12:56:45] RESULT {"ELEMENT":":wdc:1470401805092"}
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805092/click"
[12:56:45] DATA {}
[12:56:45] RESULT {}
And her role "Member",
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:45] DATA {"using":"xpath","value":"//button[@data-cuke=\"user-save\"]"}
[12:56:45] RESULT {"ELEMENT":":wdc:1470401805093"}
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401805093/click"
[12:56:45] DATA {}
[12:56:45] RESULT {}
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:45] DATA {"using":"xpath","value":"//x-cuke[@id=\"user-record\"]"}
[12:56:45] RESULT [{"ELEMENT":":wdc:1470401805094"}]
And I submit the create user form.
[12:56:45] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:45] DATA {"using":"xpath","value":"//x-cuke[@id=\"firstName\"]"}
[12:56:46] RESULT {"ELEMENT":":wdc:1470401805095"}
Then her record shows the same data.
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/5_Then__her_record_shows_the_same_data._(failed).png
[12:56:46] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:56:46] DATA {}
[12:56:46] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAHgCAYAAAA7YR+mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3RU1drH8e9Meu+FQEIaXUjoIAgKqICoYLnYe7kqil1EffWqqNdyrdfutXewgChF6TX0TiCkkJDee515/0hmzJAEQhNwfp+1WIucPmfO7HP2c/Z ... (52958 more bytes)
[chimp][helper] saved screenshot to .screenshots/5_Then__her_record_shows_the_same_data._(failed).png
@watch
Scenario: Edit an existing user
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:46] DATA {"url":"http://localhost:3000/users"}
[12:56:46] RESULT {}
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:46] DATA {"using":"xpath","value":"//x-cuke[@id=\"user-list\"]"}
[12:56:46] RESULT [{"ELEMENT":":wdc:1470401806576"}]
Given I have opened the list of users : "http://localhost:3000/users"
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:46] DATA {"using":"xpath","value":"//a[@data-cuke=\"edit-jj@gmail.com\"]"}
[12:56:46] RESULT {"ELEMENT":":wdc:1470401806577"}
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806577/click"
[12:56:46] DATA {}
[12:56:46] RESULT {}
And I find and click the Edit button for user "jj@gmail.com",
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:46] DATA {"using":"xpath","value":"//h3[@data-cuke=\"user-form-title\" and contains(text(), \"Edit\")]"}
[12:56:46] RESULT [{"ELEMENT":":wdc:1470401806578"}]
And I see the user "Edit" form,
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:46] DATA {"using":"xpath","value":"//input[@data-cuke=\"firstName\"]"}
[12:56:46] RESULT [{"ELEMENT":":wdc:1470401806579"}]
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806579/clear"
[12:56:46] DATA {}
[12:56:46] RESULT null
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806579/value"
[12:56:46] DATA {"value":["J","e","n","n","i","f","e","r"]}
[12:56:46] RESULT null
When I provide the user's name "Jennifer",
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:46] DATA {"using":"xpath","value":"//input[@data-cuke=\"lastName\"]"}
[12:56:46] RESULT [{"ELEMENT":":wdc:1470401806580"}]
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806580/clear"
[12:56:46] DATA {}
[12:56:46] RESULT null
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806580/value"
[12:56:46] DATA {"value":["J","o","h","n","s","o","n"]}
[12:56:46] RESULT null
And family name "Johnson",
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:46] DATA {"using":"xpath","value":"//input[@data-cuke=\"role\" and @value=\"Staff\"]"}
[12:56:46] RESULT {"ELEMENT":":wdc:1470401806581"}
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806581/click"
[12:56:46] DATA {}
[12:56:46] RESULT {}
And her role "Staff",
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:46] DATA {"using":"xpath","value":"//button[@data-cuke=\"user-save\"]"}
[12:56:46] RESULT {"ELEMENT":":wdc:1470401806582"}
[12:56:46] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806582/click"
[12:56:46] DATA {}
[12:56:47] RESULT {}
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:47] DATA {"using":"xpath","value":"//x-cuke[@id=\"user-list\"]"}
[12:56:47] RESULT [{"ELEMENT":":wdc:1470401806583"}]
And I submit the edit user form.
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:47] DATA {"using":"xpath","value":"//a[@data-cuke=\"view-jj@gmail.com\"]"}
[12:56:47] RESULT {"ELEMENT":":wdc:1470401806584"}
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401806584/click"
[12:56:47] DATA {}
[12:56:47] RESULT {}
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:47] DATA {"using":"xpath","value":"//x-cuke[@id=\"firstName\"]"}
[12:56:47] RESULT {"ELEMENT":":wdc:1470401806585"}
Then the record shows the same data.
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/6_Then__the_record_shows_the_same_data._(failed).png
[12:56:47] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:56:47] DATA {}
[12:56:47] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAHgCAYAAAA7YR+mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3RU1drH8e9Meu+FQEIaXUjoIAgKqICoYLnYe7kqil1EffWqqNdyrdfutXewgChF6TX0TiCkkJDee515/0hmzJAEQhNwfp+1WIucPmfO7HP2c/Z ... (52714 more bytes)
[chimp][helper] saved screenshot to .screenshots/6_Then__the_record_shows_the_same_data._(failed).png
@watch
Scenario: Hide an existing user
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:56:47] DATA {"url":"http://localhost:3000/users"}
[12:56:47] RESULT {}
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:47] DATA {"using":"xpath","value":"//x-cuke[@id=\"user-list\"]"}
[12:56:47] RESULT [{"ELEMENT":":wdc:1470401807936"}]
Given I have opened the list of users : "http://localhost:3000/users"
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:56:47] DATA {"using":"xpath","value":"//a[@data-cuke=\"hide-jj@gmail.com\"]"}
[12:56:47] RESULT {"ELEMENT":":wdc:1470401807937"}
[12:56:47] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401807937/click"
[12:56:47] DATA {}
[12:56:47] RESULT {}
And I find and click the Remove button for user "jj@gmail.com",
[12:56:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:56:48] DATA {"using":"xpath","value":"//a[@data-cuke=\"hide-jj@gmail.com\"]"}
[12:56:48] RESULT [{"ELEMENT":":wdc:1470401807937"}]
[chimp][hooks] Could not provide error hint
[chimp] Detected an unhandledRejection:
[chimp][hooks] Promise: { exception:
{ message: 'expected //a[@data-cuke="hide-jj@gmail.com"] to disappear within 5s',
type: 'WaitUntilTimeoutError' } }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {"message":"expected //a[@data-cuke=\"hide-jj@gmail.com\"] to disappear within 5s","type":"WaitUntilTimeoutError"}
[chimp] Detected an unhandledRejection:
[chimp][hooks] TypeError: Cannot read property 'getFileName' of undefined
at isFrameInCucumber (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:9:23)
at Array.<anonymous> (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/runtime/stack_trace_filter.js:15:9)
at TraceModifier._modify (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:44:32)
at Function.prepareStackTrace (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/stack-chain/stack-chain.js:119:25)
at trackRejection (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1066:32)
at reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:1131:5)
at deferred.reject (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/q/q.js:633:16)
at run (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:87:22)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:100:28
at flush (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/babel-runtime/node_modules/core-js/library/modules/_microtask.js:18:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
[chimp][hooks] Promise: { _c: [], _a: [], _s: 2, _d: true, _v: {}, _h: 0, _n: false }
[chimp][hooks] Forcibly exiting Cucumber
[chimp][cucumber] Received message from cucumber child. Result: {}
Then I no longer see that user record.
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/7_Then__I_no_longer_see_that_user_record._(failed).png
[12:57:48] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:48] DATA {}
[12:57:48] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAKiCAYAAABIGa5cAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzddXgU1+LG8e9u3F0IxEOwhuBSrAXaUkpbqFE32lt3t197q/dW7q3dugs1oGhxd3cJBJIQiLvr7u+PJNuEJJBAaKD7fp6H5yE7ujOzM3PeOeeMIXD ... (111142 more bytes)
[chimp][helper] saved screenshot to .screenshots/7_Then__I_no_longer_see_that_user_record._(failed).png
Feature: 004 Password Management
As an authorized user
I need to reset my password
@watch
Scenario: BAD password reset request
[12:57:48] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:48] DATA {}
[12:57:48] RESULT {"height":480,"width":1024}
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:48] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:48] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:48] DATA {"width":1024,"height":480}
[12:57:48] RESULT {}
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:48] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:48] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:57:48] DATA {"url":"http://localhost:3000/logout"}
[12:57:48] RESULT {}
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:48] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:57:48] RESULT [{"ELEMENT":":wdc:1470401868687"}]
[12:57:48] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401868687/displayed"
[12:57:48] DATA {}
[12:57:48] RESULT true
[12:57:48] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:57:48] DATA {"url":"http://localhost:3000/password"}
[12:57:49] RESULT {}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:49] DATA {"using":"xpath","value":"//input[@data-cuke=\"rst-email\"]"}
[12:57:49] RESULT [{"ELEMENT":":wdc:1470401869184"}]
[12:57:49] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401869184/enabled"
[12:57:49] DATA {}
[12:57:49] RESULT true
Given I have opened the password reset request page : "http://localhost:3000/password"
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:49] DATA {"using":"xpath","value":"//input[@data-cuke=\"rst-email\"]"}
[12:57:49] RESULT [{"ELEMENT":":wdc:1470401869184"}]
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401869184/clear"
[12:57:49] DATA {}
[12:57:49] RESULT null
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401869184/value"
[12:57:49] DATA {"value":["s","l","e","a","z","e","b","a","g","@","(11 more items)"]}
[12:57:49] RESULT null
When I provide my email "sleazebag@hotmail.com"
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:57:49] DATA {"using":"xpath","value":"//input[@data-cuke=\"submit-rst-email\"]"}
[12:57:49] RESULT {"ELEMENT":":wdc:1470401869185"}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401869185/click"
[12:57:49] DATA {}
[12:57:49] RESULT {}
And I submit the password change request form
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:57:49] DATA {"using":"xpath","value":"//div[@data-cuke=\"bad-mailing\"]"}
[12:57:49] RESULT {"ELEMENT":":wdc:1470401869186"}
Then I see the rejection, "We can't find <" that email "> in our files. [ UNKNOWN EMAIL ]".
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/8_Then__I_see_the_rejection,__We_can't_find____that_email____in_our_files._[_UNKNOWN_EMAIL_]_._(failed).png
[12:57:49] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:49] DATA {}
[12:57:49] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJHCAYAAAAOkCRtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hUVf7H8fdMeiGkJ4QWktBLEgi9FwUBFexdbLvrWtCfva1rX11d27ruWtay9ooiAtKk95DQCQFCAum915nfH5MZMmkEpATn83oeHzNz7517597 ... (131430 more bytes)
[chimp][helper] saved screenshot to .screenshots/8_Then__I_see_the_rejection,__We_can't_find____that_email____in_our_files._[_UNKNOWN_EMAIL_]_._(failed).png
@watch
Scenario: Request password reset
[12:57:49] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:49] DATA {}
[12:57:49] RESULT {"height":480,"width":1024}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:49] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:49] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:49] DATA {"width":1024,"height":480}
[12:57:49] RESULT {}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:49] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:49] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:49] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:57:49] DATA {"url":"http://localhost:3000/logout"}
[12:57:50] RESULT {}
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:50] DATA {"using":"xpath","value":"//x-cuke[@id=\"login\"]"}
[12:57:50] RESULT [{"ELEMENT":":wdc:1470401870419"}]
[12:57:50] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401870419/displayed"
[12:57:50] DATA {}
[12:57:50] RESULT true
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:57:50] DATA {"url":"http://localhost:3000/password"}
[12:57:50] RESULT {}
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:50] DATA {"using":"xpath","value":"//input[@data-cuke=\"rst-email\"]"}
[12:57:50] RESULT [{"ELEMENT":":wdc:1470401870892"}]
[12:57:50] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401870892/enabled"
[12:57:50] DATA {}
[12:57:50] RESULT true
Given I have opened the password reset request page : "http://localhost:3000/password"
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:50] DATA {"using":"xpath","value":"//input[@data-cuke=\"rst-email\"]"}
[12:57:50] RESULT [{"ELEMENT":":wdc:1470401870892"}]
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401870892/clear"
[12:57:50] DATA {}
[12:57:50] RESULT null
[12:57:50] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401870892/value"
[12:57:50] DATA {"value":["y","o","u","r","s","e","l","f",".","y","(16 more items)"]}
[12:57:51] RESULT null
When I provide my email "yourself.yourorg@gmail.com"
[12:57:51] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element"
[12:57:51] DATA {"using":"xpath","value":"//input[@data-cuke=\"submit-rst-email\"]"}
[12:57:51] RESULT {"ELEMENT":":wdc:1470401870893"}
[12:57:51] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401870893/click"
[12:57:51] DATA {}
[12:57:51] RESULT {}
And I submit the password change request form
[12:57:51] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:51] DATA {"using":"xpath","value":"//x-cuke[@id=\"reset-success\"]"}
[12:57:52] RESULT []
Then I see the confirmation: "Your password reset request has been sent".
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/9_Then__I_see_the_confirmation___Your_password_reset_request_has_been_sent_._(failed).png
[12:57:52] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:52] DATA {}
[12:57:52] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJHCAYAAAAOkCRtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hUVf7H8fdMeiGkJ4QWktBLEgi9FwUBFexdbLvrWtCfva1rX11d27ruWtay9ooiAtKk95DQCQFCAum915nfH5MZMmkEpATn83oeHzNz7517597 ... (132538 more bytes)
[chimp][helper] saved screenshot to .screenshots/9_Then__I_see_the_confirmation___Your_password_reset_request_has_been_sent_._(failed).png
@watch
Scenario: Process BAD password reset code
Given that my email is "sleazebag@hotmail.com"
[12:57:52] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:52] DATA {}
[12:57:52] RESULT {"height":480,"width":1024}
[12:57:52] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:52] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:52] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:52] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:52] DATA {"width":1024,"height":480}
[12:57:52] RESULT {}
[12:57:52] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:52] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:52] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:52] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/url"
[12:57:52] DATA {"url":"http://localhost:3000/prrq/hacker"}
[12:57:52] RESULT {}
When I open the password reset page : "http://localhost:3000/prrq/" with code : "hacker"
[12:57:52] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/elements"
[12:57:52] DATA {"using":"xpath","value":"//div[@data-cuke=\"bad-content\"]"}
[12:57:52] RESULT [{"ELEMENT":":wdc:1470401872988"}]
[12:57:52] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/element/:wdc:1470401872988/text"
[12:57:52] DATA {}
[12:57:53] RESULT "You are not authorized to change a password here"
Then I see the invalid password reset alert, "You are not authorized to change a password here".
@watch
Scenario: Process GOOD password reset code
Given that my email is "yourself.yourorg@gmail.com"
[12:57:53] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:53] DATA {}
[12:57:53] RESULT {"height":480,"width":1024}
[12:57:53] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:53] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:53] RESULT {"screenWidth":1024,"screenHeight":480}
[12:57:53] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/window/current/size"
[12:57:53] DATA {"width":1024,"height":480}
[12:57:53] RESULT {}
[12:57:53] COMMAND POST "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/execute"
[12:57:53] DATA {"script":"return (function getViewportSize() {\n return {\n screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),\n screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)\n };\n}).apply(null, arguments)","args":[]}
[12:57:53] RESULT {"screenWidth":1024,"screenHeight":480}
When I open the password reset page : "http://localhost:3000/prrq/" with code : "?"
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/10_When__I_open_the_password_reset_page____http___localhost_3000_prrq___with_code_______(failed).png
[12:57:53] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:53] DATA {}
[12:57:53] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJFCAYAAABDWIVmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hT1f8H8HeSjnTvSYEuChToYu+9QaYi4EBA/fEVQcWBqF8UwT1w76/gFgEZsvcqo9BBgUIp3Xsl3c1o8vujzaVp0lLKaDHv1/PwPM2dJzeXe+/ ... (79578 more bytes)
[chimp][helper] saved screenshot to .screenshots/10_When__I_open_the_password_reset_page____http___localhost_3000_prrq___with_code_______(failed).png
And enter password "myNewPassword" twice and click 'Reset Password'
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/11_And__enter_password__myNewPassword__twice_and_click_'Reset_Password'_(failed).png
[12:57:53] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:53] DATA {}
[12:57:53] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJFCAYAAABDWIVmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hT1f8H8HeSjnTvSYEuChToYu+9QaYi4EBA/fEVQcWBqF8UwT1w76/gFgEZsvcqo9BBgUIp3Xsl3c1o8vujzaVp0lLKaDHv1/PwPM2dJzeXe+/ ... (79578 more bytes)
[chimp][helper] saved screenshot to .screenshots/11_And__enter_password__myNewPassword__twice_and_click_'Reset_Password'_(failed).png
And I provide my email and new password and submit the form
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/12_And__I_provide_my_email_and_new_password_and_submit_the_form_(failed).png
[12:57:53] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:53] DATA {}
[12:57:53] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJFCAYAAABDWIVmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hT1f8H8HeSjnTvSYEuChToYu+9QaYi4EBA/fEVQcWBqF8UwT1w76/gFgEZsvcqo9BBgUIp3Xsl3c1o8vujzaVp0lLKaDHv1/PwPM2dJzeXe+/ ... (79578 more bytes)
[chimp][helper] saved screenshot to .screenshots/12_And__I_provide_my_email_and_new_password_and_submit_the_form_(failed).png
Then I see the user drop-down menu.
[chimp][hooks] capturing screenshot
[chimp][helper] saving screenshot to .screenshots/13_Then__I_see_the_user_drop_down_menu._(failed).png
[12:57:53] COMMAND GET "/wd/hub/session/bb140c80-5b0b-11e6-a443-655aaf578ba0/screenshot"
[12:57:53] DATA {}
[12:57:53] RESULT "iVBORw0KGgoAAAANSUhEUgAABAAAAAJFCAYAAABDWIVmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hT1f8H8HeSjnTvSYEuChToYu+9QaYi4EBA/fEVQcWBqF8UwT1w76/gFgEZsvcqo9BBgUIp3Xsl3c1o8vujzaVp0lLKaDHv1/PwPM2dJzeXe+/ ... (79578 more bytes)
[chimp][helper] saved screenshot to .screenshots/13_Then__I_see_the_user_drop_down_menu._(failed).png
[chimp][cucumber] Received message from cucumber child. Result: [
{
"description": " As an unauthorized user\n I want to join up",
"elements": [
{
"id": "001-register-a-new-user;register-a-new-user",
"keyword": "Scenario",
"line": 6,
"name": "Register a new user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "my email is \"yourself.yourorg@gmail.com\" and I have opened the registration page, \"http://localhost:3000/register\"",
"result": {
"status": "failed",
"duration": 60002459478,
"error_message": "function timed out after 60000 milliseconds"
},
"line": 7,
"match": {
"location": "step_defs.js:23"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I enter my email and the repeated password : \"yourpassword\",",
"result": {
"status": "skipped"
},
"line": 8,
"match": {
"location": "step_defs.js:40"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the login page submit button : \"Login\".",
"result": {
"status": "skipped"
},
"line": 9,
"match": {
"location": "step_defs.js:54"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 366571
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 5
}
],
"type": "scenario"
},
{
"id": "001-register-a-new-user;login-new-user",
"keyword": "Scenario",
"line": 12,
"name": "Login new user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 1238753399
},
"line": 13,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"yourself.yourorg@gmail.com\" and password \"yourpassword\"",
"result": {
"status": "passed",
"duration": 840090268
},
"line": 14,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "failed",
"duration": 60001877202,
"error_message": "function timed out after 60000 milliseconds"
},
"line": 15,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "skipped"
},
"line": 16,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 206418
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 11
}
],
"type": "scenario"
},
{
"id": "001-register-a-new-user;logout-new-user",
"keyword": "Scenario",
"line": 19,
"name": "Logout new user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I am at my personal account page, \"http://localhost:3000/account\"",
"result": {
"status": "passed",
"duration": 468799648
},
"line": 20,
"match": {
"location": "step_defs.js:65"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I logout,",
"result": {
"status": "passed",
"duration": 403249354
},
"line": 21,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the login page submit button : \"Login\".",
"result": {
"status": "passed",
"duration": 196334317
},
"line": 22,
"match": {
"location": "step_defs.js:54"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 154690
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 18
}
],
"type": "scenario"
}
],
"id": "001-register-a-new-user",
"keyword": "Feature",
"line": 1,
"name": "001 Register a new user",
"tags": [],
"uri": "/home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/features/001_users/addUser.feature"
},
{
"description": " As a visitor\n I want to update or create a new color",
"elements": [
{
"id": "002-manage-colors;log-in-as-a-staff-member",
"keyword": "Scenario",
"line": 6,
"name": "Log in as a staff member",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 863904331
},
"line": 7,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"staff@example.com\" and password \"apple_01\"",
"result": {
"status": "passed",
"duration": 610127325
},
"line": 8,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "passed",
"duration": 246677377
},
"line": 9,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "passed",
"duration": 30456986
},
"line": 10,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 160272
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 5
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;create-a-new-color",
"keyword": "Scenario",
"line": 13,
"name": "Create a new color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the 'add colors' page : \"http://localhost:3000/colors/add\"",
"result": {
"status": "passed",
"duration": 331084457
},
"line": 14,
"match": {
"location": "step_defs.js:31"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I create a \"22\" years old \"Pink\" item with text \"Pink is the new Black\",",
"result": {
"status": "passed",
"duration": 655332625
},
"line": 15,
"match": {
"location": "step_defs.js:41"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see a new record with the same title, age and contents.",
"result": {
"status": "passed",
"duration": 98277505
},
"line": 16,
"match": {
"location": "step_defs.js:58"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 148375
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 12
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;verify-field-validation",
"keyword": "Scenario",
"line": 19,
"name": "Verify field validation",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 401876735
},
"line": 20,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to edit the \"Pink\" item,",
"result": {
"status": "passed",
"duration": 357043001
},
"line": 21,
"match": {
"location": "step_defs.js:76"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I set 'Age' to \"12\"",
"result": {
"status": "passed",
"duration": 64780745
},
"line": 22,
"match": {
"location": "step_defs.js:84"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I save the item,",
"result": {
"status": "passed",
"duration": 57288752
},
"line": 23,
"match": {
"location": "step_defs.js:88"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the validation hint \"Nope. 12 is too young, Pool Party Age : 21\".",
"result": {
"status": "passed",
"duration": 29265332
},
"line": 24,
"match": {
"location": "step_defs.js:92"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 139507
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 18
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;update-color",
"keyword": "Scenario",
"line": 27,
"name": "Update color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 434792891
},
"line": 28,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to edit the \"Pink\" item,",
"result": {
"status": "passed",
"duration": 200799152
},
"line": 29,
"match": {
"location": "step_defs.js:76"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I set 'Age' to \"42\"",
"result": {
"status": "passed",
"duration": 96005217
},
"line": 30,
"match": {
"location": "step_defs.js:84"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I save the item with new content \"Pink is the new ---> Orange!\",",
"result": {
"status": "passed",
"duration": 345446679
},
"line": 31,
"match": {
"location": "step_defs.js:97"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the record with the new content.",
"result": {
"status": "passed",
"duration": 66152402
},
"line": 32,
"match": {
"location": "step_defs.js:103"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 139654
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 26
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;fail-to-update-color",
"keyword": "Scenario",
"line": 35,
"name": "Fail to update color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 424211801
},
"line": 36,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to edit the \"Pink\" item,",
"result": {
"status": "passed",
"duration": 198701756
},
"line": 37,
"match": {
"location": "step_defs.js:76"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I save the item with new content \"Pink is the new ---> crap!\",",
"result": {
"status": "passed",
"duration": 301231223
},
"line": 38,
"match": {
"location": "step_defs.js:97"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the message, \"I knew it! It's YOUR fault -- again! [ Remedy : cut the crap ]\".",
"result": {
"status": "passed",
"duration": 116266319
},
"line": 39,
"match": {
"location": "step_defs.js:120"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 199006
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 34
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;fail-to-delete-color",
"keyword": "Scenario",
"line": 42,
"name": "Fail to delete color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 611874271
},
"line": 43,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to view the \"Pink\" item,",
"result": {
"status": "passed",
"duration": 131390274
},
"line": 44,
"match": {
"location": "step_defs.js:138"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I elect to delete the item,",
"result": {
"status": "passed",
"duration": 15032147
},
"line": 45,
"match": {
"location": "step_defs.js:148"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see it is disabled.",
"result": {
"status": "passed",
"duration": 17856679
},
"line": 46,
"match": {
"location": "step_defs.js:155"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 130431
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 41
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;log-in-as-a-registered-member",
"keyword": "Scenario",
"line": 49,
"name": "Log in as a registered member",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 889138114
},
"line": 50,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"registered@example.com\" and password \"apple_01\"",
"result": {
"status": "passed",
"duration": 578994766
},
"line": 51,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "passed",
"duration": 200780487
},
"line": 52,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "passed",
"duration": 25485163
},
"line": 53,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 124607
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 48
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;unable-to-update-color",
"keyword": "Scenario",
"line": 56,
"name": "Unable to update color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 408303920
},
"line": 57,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to view the \"Pink\" item,",
"result": {
"status": "passed",
"duration": 175127244
},
"line": 58,
"match": {
"location": "step_defs.js:138"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I attempt to edit the item,",
"result": {
"status": "passed",
"duration": 12612111
},
"line": 59,
"match": {
"location": "step_defs.js:167"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see it is disabled.",
"result": {
"status": "passed",
"duration": 17482239
},
"line": 60,
"match": {
"location": "step_defs.js:155"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 125556
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 55
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;forbidden-to-create-a-new-color",
"keyword": "Scenario",
"line": 63,
"name": "Forbidden to create a new color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors editor page : \"http://localhost:3000/colors/add\"",
"result": {
"status": "passed",
"duration": 412423516
},
"line": 64,
"match": {
"location": "step_defs.js:180"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the warning \"You haven't been authorized to access this page.\"",
"result": {
"status": "passed",
"duration": 60069914
},
"line": 65,
"match": {
"location": "step_defs.js:189"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 126224
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 62
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;log-in-as-a-member",
"keyword": "Scenario",
"line": 68,
"name": "Log in as a member",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 914629984
},
"line": 69,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"member@example.com\" and password \"apple_01\"",
"result": {
"status": "passed",
"duration": 630617424
},
"line": 70,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "passed",
"duration": 211349965
},
"line": 71,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "passed",
"duration": 26070855
},
"line": 72,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 195799
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 67
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;create-a-new-color",
"keyword": "Scenario",
"line": 75,
"name": "Create a new color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the 'add colors' page : \"http://localhost:3000/colors/add\"",
"result": {
"status": "passed",
"duration": 459363756
},
"line": 76,
"match": {
"location": "step_defs.js:31"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I create a \"32\" years old \"Orange\" item with text \"Orange is the new Boredom\",",
"result": {
"status": "passed",
"duration": 699046096
},
"line": 77,
"match": {
"location": "step_defs.js:41"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see a new record with the same title, age and contents.",
"result": {
"status": "passed",
"duration": 133514208
},
"line": 78,
"match": {
"location": "step_defs.js:58"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 127927
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 74
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;unable-to-update-color",
"keyword": "Scenario",
"line": 81,
"name": "Unable to update color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 444466645
},
"line": 82,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to view the \"Orange\" item,",
"result": {
"status": "passed",
"duration": 119933244
},
"line": 83,
"match": {
"location": "step_defs.js:138"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I attempt to edit the item,",
"result": {
"status": "passed",
"duration": 10015220
},
"line": 84,
"match": {
"location": "step_defs.js:167"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see it is disabled.",
"result": {
"status": "passed",
"duration": 16487998
},
"line": 85,
"match": {
"location": "step_defs.js:155"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 129178
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 80
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;log-in-as-an-administrator",
"keyword": "Scenario",
"line": 88,
"name": "Log in as an administrator",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 790828942
},
"line": 89,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"administrator@example.com\" and password \"apple_01\"",
"result": {
"status": "passed",
"duration": 719054756
},
"line": 90,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "passed",
"duration": 217534764
},
"line": 91,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "passed",
"duration": 21572821
},
"line": 92,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 132960
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 87
}
],
"type": "scenario"
},
{
"id": "002-manage-colors;hide-color",
"keyword": "Scenario",
"line": 95,
"name": "Hide color",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the colors list page : \"http://localhost:3000/colors\"",
"result": {
"status": "passed",
"duration": 363473861
},
"line": 96,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I have elected to \"delete\" the \"Orange\" item.",
"result": {
"status": "passed",
"duration": 352645833
},
"line": 97,
"match": {
"location": "step_defs.js:197"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I no longer see that color record.",
"result": {
"status": "passed",
"duration": 1127811939
},
"line": 98,
"match": {
"location": "step_defs.js:208"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 136831
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 94
}
],
"type": "scenario"
}
],
"id": "002-manage-colors",
"keyword": "Feature",
"line": 1,
"name": "002 Manage colors",
"tags": [],
"uri": "/home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/features/002_colors/addColor.feature"
},
{
"description": " As an authorized user\n I want to create, view, update and delete users",
"elements": [
{
"id": "003-user-management;log-in-as-administrator",
"keyword": "Scenario",
"line": 6,
"name": "Log in as administrator",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the login page : \"http://localhost:3000/login\"",
"result": {
"status": "passed",
"duration": 879786215
},
"line": 7,
"match": {
"location": "step_defs.js:35"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"administrator@example.com\" and password \"apple_01\"",
"result": {
"status": "passed",
"duration": 624257989
},
"line": 8,
"match": {
"location": "step_defs.js:46"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the form",
"result": {
"status": "passed",
"duration": 183849204
},
"line": 9,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see my user drop-down menu.",
"result": {
"status": "passed",
"duration": 22365210
},
"line": 10,
"match": {
"location": "step_defs.js:60"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 132071
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 5
}
],
"type": "scenario"
},
{
"id": "003-user-management;create-a-new-user",
"keyword": "Scenario",
"line": 13,
"name": "Create a new user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the create user page : \"http://localhost:3000/users/add\"",
"result": {
"status": "passed",
"duration": 402236791
},
"line": 14,
"match": {
"location": "step_defs.js:70"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "seen the title \"Add new record\"",
"result": {
"status": "passed",
"duration": 27314382
},
"line": 15,
"match": {
"location": "step_defs.js:74"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide the user's name \"Jenny\",",
"result": {
"status": "passed",
"duration": 149992320
},
"line": 16,
"match": {
"location": "step_defs.js:81"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "family name \"Jonson\",",
"result": {
"status": "passed",
"duration": 108362387
},
"line": 17,
"match": {
"location": "step_defs.js:87"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "her email \"jj@gmail.com\",",
"result": {
"status": "passed",
"duration": 138258785
},
"line": 18,
"match": {
"location": "step_defs.js:93"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "her password \"jjjj7777\",",
"result": {
"status": "passed",
"duration": 240788698
},
"line": 19,
"match": {
"location": "step_defs.js:98"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "her role \"Member\",",
"result": {
"status": "passed",
"duration": 67363652
},
"line": 20,
"match": {
"location": "step_defs.js:104"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the create user form.",
"result": {
"status": "passed",
"duration": 190045561
},
"line": 21,
"match": {
"location": "step_defs.js:111"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "her record shows the same data.",
"result": {
"status": "failed",
"duration": 12401614,
"error_message": "TypeError: browser.element(...).getText is not a function\n at World.<anonymous> (step_defs.js:120:44)\n at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39"
},
"line": 22,
"match": {
"location": "step_defs.js:118"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 162947
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 12
}
],
"type": "scenario"
},
{
"id": "003-user-management;edit-an-existing-user",
"keyword": "Scenario",
"line": 25,
"name": "Edit an existing user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the list of users : \"http://localhost:3000/users\"",
"result": {
"status": "passed",
"duration": 502286241
},
"line": 26,
"match": {
"location": "step_defs.js:131"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I find and click the Edit button for user \"jj@gmail.com\",",
"result": {
"status": "passed",
"duration": 108546691
},
"line": 27,
"match": {
"location": "step_defs.js:137"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I see the user \"Edit\" form,",
"result": {
"status": "passed",
"duration": 20232844
},
"line": 28,
"match": {
"location": "step_defs.js:143"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide the user's name \"Jennifer\",",
"result": {
"status": "passed",
"duration": 104469511
},
"line": 29,
"match": {
"location": "step_defs.js:81"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "family name \"Johnson\",",
"result": {
"status": "passed",
"duration": 93591816
},
"line": 30,
"match": {
"location": "step_defs.js:87"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "her role \"Staff\",",
"result": {
"status": "passed",
"duration": 59074373
},
"line": 31,
"match": {
"location": "step_defs.js:104"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the edit user form.",
"result": {
"status": "passed",
"duration": 221374509
},
"line": 32,
"match": {
"location": "step_defs.js:149"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "the record shows the same data.",
"result": {
"status": "failed",
"duration": 86765651,
"error_message": "TypeError: browser.element(...).getText is not a function\n at World.<anonymous> (step_defs.js:157:44)\n at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39"
},
"line": 33,
"match": {
"location": "step_defs.js:154"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 165853
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 24
}
],
"type": "scenario"
},
{
"id": "003-user-management;hide-an-existing-user",
"keyword": "Scenario",
"line": 36,
"name": "Hide an existing user",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the list of users : \"http://localhost:3000/users\"",
"result": {
"status": "passed",
"duration": 574453503
},
"line": 37,
"match": {
"location": "step_defs.js:131"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I find and click the Remove button for user \"jj@gmail.com\",",
"result": {
"status": "passed",
"duration": 55359521
},
"line": 38,
"match": {
"location": "step_defs.js:168"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I no longer see that user record.",
"result": {
"status": "failed",
"duration": 60008950951,
"error_message": "function timed out after 60000 milliseconds"
},
"line": 39,
"match": {
"location": "step_defs.js:174"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 179717
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 35
}
],
"type": "scenario"
}
],
"id": "003-user-management",
"keyword": "Feature",
"line": 1,
"name": "003 User Management",
"tags": [],
"uri": "/home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/features/003_user-mgmnt/account.feature"
},
{
"description": " As an authorized user\n I need to reset my password",
"elements": [
{
"id": "004-password-management;bad-password-reset-request",
"keyword": "Scenario",
"line": 6,
"name": "BAD password reset request",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the password reset request page : \"http://localhost:3000/password\"",
"result": {
"status": "passed",
"duration": 1076996659
},
"line": 7,
"match": {
"location": "step_defs.js:34"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"sleazebag@hotmail.com\"",
"result": {
"status": "passed",
"duration": 393287719
},
"line": 8,
"match": {
"location": "step_defs.js:47"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the password change request form",
"result": {
"status": "passed",
"duration": 62817541
},
"line": 9,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the rejection, \"We can't find <\" that email \"> in our files. [ UNKNOWN EMAIL ]\".",
"result": {
"status": "failed",
"duration": 12235210,
"error_message": "TypeError: browser.element(...).getText is not a function\n at World.<anonymous> (step_defs.js:59:10)\n at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39"
},
"line": 10,
"match": {
"location": "step_defs.js:56"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 188577
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 5
}
],
"type": "scenario"
},
{
"id": "004-password-management;request-password-reset",
"keyword": "Scenario",
"line": 13,
"name": "Request password reset",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I have opened the password reset request page : \"http://localhost:3000/password\"",
"result": {
"status": "passed",
"duration": 1133454120
},
"line": 14,
"match": {
"location": "step_defs.js:34"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I provide my email \"yourself.yourorg@gmail.com\"",
"result": {
"status": "passed",
"duration": 425502913
},
"line": 15,
"match": {
"location": "step_defs.js:47"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I submit the password change request form",
"result": {
"status": "passed",
"duration": 56025240
},
"line": 16,
"match": {
"location": "step_defs.js:52"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the confirmation: \"Your password reset request has been sent\".",
"result": {
"status": "failed",
"duration": 1023850620,
"error_message": "ExpectationFailed: Expected 'confirmation message' to be 'Your password reset request has been sent'.\n at Expectation.addExpectationResult (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-jasmine-expect/index.js:44:13)\n at Expectation.toBe (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-jasmine-expect/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1501:12)\n at World.<anonymous> (step_defs.js:72:44)\n at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39"
},
"line": 17,
"match": {
"location": "step_defs.js:69"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 165838
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 12
}
],
"type": "scenario"
},
{
"id": "004-password-management;process-bad-password-reset-code",
"keyword": "Scenario",
"line": 20,
"name": "Process BAD password reset code",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "that my email is \"sleazebag@hotmail.com\"",
"result": {
"status": "passed",
"duration": 237355
},
"line": 21,
"match": {
"location": "step_defs.js:88"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I open the password reset page : \"http://localhost:3000/prrq/\" with code : \"hacker\"",
"result": {
"status": "passed",
"duration": 413421257
},
"line": 22,
"match": {
"location": "step_defs.js:92"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the invalid password reset alert, \"You are not authorized to change a password here\".",
"result": {
"status": "passed",
"duration": 80751794
},
"line": 23,
"match": {
"location": "step_defs.js:145"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 130258
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 19
}
],
"type": "scenario"
},
{
"id": "004-password-management;process-good-password-reset-code",
"keyword": "Scenario",
"line": 26,
"name": "Process GOOD password reset code",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "that my email is \"yourself.yourorg@gmail.com\"",
"result": {
"status": "passed",
"duration": 153678
},
"line": 27,
"match": {
"location": "step_defs.js:88"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I open the password reset page : \"http://localhost:3000/prrq/\" with code : \"?\"",
"result": {
"status": "failed",
"duration": 22967515,
"error_message": "TypeError: Cannot read property 'emails' of null\n at World.<anonymous> (step_defs.js:101:19)\n at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39"
},
"line": 28,
"match": {
"location": "step_defs.js:92"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "enter password \"myNewPassword\" twice and click 'Reset Password'",
"result": {
"status": "skipped"
},
"line": 29,
"match": {
"location": "step_defs.js:117"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "I provide my email and new password and submit the form",
"result": {
"status": "skipped"
},
"line": 30,
"match": {
"location": "step_defs.js:125"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I see the user drop-down menu.",
"result": {
"status": "skipped"
},
"line": 31,
"match": {
"location": "step_defs.js:134"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 187085
},
"hidden": true,
"match": {
"location": "/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/dist/lib/cucumberjs/hooks.js:81"
}
}
],
"tags": [
{
"name": "@watch",
"line": 25
}
],
"type": "scenario"
}
],
"id": "004-password-management",
"keyword": "Feature",
"line": 1,
"name": "004 Password Management",
"tags": [],
"uri": "/home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/features/004_pwd-mgmnt/password.feature"
}
]
Failures:
1) Scenario: Register a new user - .e2e_tests/features/001_users/addUser.feature:6
Step: Given my email is "yourself.yourorg@gmail.com" and I have opened the registration page, "http://localhost:3000/register" - .e2e_tests/features/001_users/addUser.feature:7
Step Definition: step_defs.js:23
Message:
function timed out after 60000 milliseconds
2) Scenario: Login new user - .e2e_tests/features/001_users/addUser.feature:12
Step: And I submit the form - .e2e_tests/features/001_users/addUser.feature:15
Step Definition: step_defs.js:52
Message:
function timed out after 60000 milliseconds
3) Scenario: Create a new user - .e2e_tests/features/003_user-mgmnt/account.feature:13
Step: Then her record shows the same data. - .e2e_tests/features/003_user-mgmnt/account.feature:22
Step Definition: step_defs.js:118
Message:
TypeError: browser.element(...).getText is not a function
at World.<anonymous> (step_defs.js:120:44)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39
4) Scenario: Edit an existing user - .e2e_tests/features/003_user-mgmnt/account.feature:25
Step: Then the record shows the same data. - .e2e_tests/features/003_user-mgmnt/account.feature:33
Step Definition: step_defs.js:154
Message:
TypeError: browser.element(...).getText is not a function
at World.<anonymous> (step_defs.js:157:44)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39
5) Scenario: Hide an existing user - .e2e_tests/features/003_user-mgmnt/account.feature:36
Step: Then I no longer see that user record. - .e2e_tests/features/003_user-mgmnt/account.feature:39
Step Definition: step_defs.js:174
Message:
function timed out after 60000 milliseconds
6) Scenario: BAD password reset request - .e2e_tests/features/004_pwd-mgmnt/password.feature:6
Step: Then I see the rejection, "We can't find <" that email "> in our files. [ UNKNOWN EMAIL ]". - .e2e_tests/features/004_pwd-mgmnt/password.feature:10
Step Definition: step_defs.js:56
Message:
TypeError: browser.element(...).getText is not a function
at World.<anonymous> (step_defs.js:59:10)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39
7) Scenario: Request password reset - .e2e_tests/features/004_pwd-mgmnt/password.feature:13
Step: Then I see the confirmation: "Your password reset request has been sent". - .e2e_tests/features/004_pwd-mgmnt/password.feature:17
Step Definition: step_defs.js:69
Message:
ExpectationFailed: Expected 'confirmation message' to be 'Your password reset request has been sent'.
at Expectation.addExpectationResult (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-jasmine-expect/index.js:44:13)
at Expectation.toBe (/opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/xolvio-jasmine-expect/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1501:12)
at World.<anonymous> (step_defs.js:72:44)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39
8) Scenario: Process GOOD password reset code - .e2e_tests/features/004_pwd-mgmnt/password.feature:26
Step: When I open the password reset page : "http://localhost:3000/prrq/" with code : "?" - .e2e_tests/features/004_pwd-mgmnt/password.feature:28
Step Definition: step_defs.js:92
Message:
TypeError: Cannot read property 'emails' of null
at World.<anonymous> (step_defs.js:101:19)
at /opt/circleci/nodejs/v4.4.7/lib/node_modules/chimp/node_modules/meteor-promise/fiber_pool.js:32:39
25 scenarios (8 failed, 17 passed)
103 steps (8 failed, 6 skipped, 89 passed)
3m29.485s
[chimp][hooks] Starting AfterFeatures
[chimp][hooks] Finished AfterFeatures
[chimp][cucumber] Closed with code 2
[chimp][cucumber] Cucumber not in a stopping state
[chimp] Finished running async processes with errors
[chimp] run complete with errors Cucumber steps failed
Cucumber steps failed
Error in chimp init Cucumber steps failed
chimp .e2e_tests/chimp-config.js --browser=phantomjs --ddp=http://localhost:3000 --debug --path=.e2e_tests returned exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment