michaelguild13 / Selenium-WebdriverIO-Mocha-Chai-Boilerplate

E2E Testing: Selenium + WebdriverIO + Mocha + Chai
27 stars 16 forks source link

When i run npm run test, my test fails #7

Closed vittalas closed 5 years ago

vittalas commented 6 years ago

[16:28:59] COMMAND POST "/wd/hub/session" [16:28:59] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"maxInstances":5,"browserName":"chrome","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.12.0","name":"webdriverio"}}} [16:29:01] INFO SET SESSION ID 4ba74cf84329a49b48017c018064d173 [16:29:01] RESULT {"applicationCacheEnabled":false,"rotatable":false,"mobileEmulationEnabled":false,"networkConnectionEnabled":false,"chrome":{"chromedriverVersion":"2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85)","userDataDir":"/var/folders/f7/tp1pvknd0tx2lfsdffbd3qdjrz_r6v/T/.org.chromium.Chromium.3XxxDO"},"takesHeapSnapshot":true,"pageLoadStrategy":"normal","databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"version":"68.0.3440.75","platform":"Mac OS X","browserConnectionEnabled":false,"nativeEvents":true,"acceptSslCerts":false,"acceptInsecureCerts":false,"locationContextEnabled":true,"webStorageEnabled":true,"browserName":"chrome","takesScreenshot":true,"javascriptEnabled":true,"cssSelectorsEnabled":true,"setWindowRect":true,"unexpectedAlertBehaviour":""} npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! selenium-webdriverio-mocha-chai-sinon-boilerplate@1.0.1 test: wdio wdio.conf.js --verbose npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the selenium-webdriverio-mocha-chai-sinon-boilerplate@1.0.1 test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/svittalagupta/.npm/_logs/2018-07-30T22_29_01_205Z-debug.log

Not sure where the problem is but i am not able to run a sample test.

michaelguild13 commented 5 years ago

I'll try fixing this today for fun

michaelguild13 commented 5 years ago

I know it's a bit late, but it's fixed now :)