Skip to content

Instantly share code, notes, and snippets.

npx wdio ./config/browserstack/wdio.ios.browser.conf.js --log-level debug
Execution of 1 spec files started at 2019-07-30T08:44:59.090Z
2019-07-30T08:44:59.093Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
2019-07-30T08:44:59.104Z INFO @wdio/cli:Launcher: Run onPrepare hook
2019-07-30T08:44:59.105Z DEBUG @wdio/appium-service: Will spawn Appium process: appium
2019-07-30T08:45:02.598Z ERROR @wdio/appium-service: Appium exited before timeout (exit code: 2)
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
npx wdio ./config/browserstack/wdio.ios.browser.conf.js
Execution of 1 spec files started at 2019-07-30T08:34:48.771Z
[0-0] RUNNING in safari - /tests/specs/browser.checkbox.spec.js
[0-0] Error in "undefined"
Error: Parameters were incorrect. We wanted {"required":["type","ms"]} and you sent ["implicit","pageLoad","script"]
[0-0] FAILED in safari - /tests/specs/browser.checkbox.spec.js
"spec" Reporter:
2019-07-30 08:09:33:814 - [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","deviceName":"iPhone X","browserName":"safari","appium:automationName":"XCUITest","bstack:options":{"deviceName":"iPhone X","realMobile":true},"acceptSslCert":false,"detected_language":"webdriver/5.11.5","browser":"iphone","browserstack.useW3C":"true","real_mobile":"true","browser_name":"safari","device":"iphone","browserstack.use_w3c":"true","browserstack.debug":"false","browserstack.tunnelIdentifier":"","platform":"MAC","os_version":"","browserstack.appiumLogs":"true","version":"","mobile":{"browser":"mobile","version":"iPhone X-11.4"},"orig_os":"ios","64bit":false,"browserstack.video":"true","browserstack.video.disableWaterMark":"true","proxy_type":"node","realMobile":"true","udid":"10b4ddc2057adff028ec5a4eaa8e2fb6f7f331fb","appium_port":8080,"automationName":"XCUITest","safariInitialUrl":"http://mobile-internet-check.browserstack.com","webkitResponseTimeout":20000,"orientation":"PORTRAIT","deviceOrientat
@pablopaul
pablopaul / codecept.conf.js
Last active November 26, 2018 14:21
CodeceptJS 1.4.6. Debug White Page Failure - To see the logged page source run your tests with "--verbose"
// Add the plugin to the CodeceptJS config
...
plugins: {
logPageSource: {
require: "./logPageSource",
enabled: true
}
}
@pablopaul
pablopaul / testing-react-components.js
Last active April 18, 2018 23:34 — forked from peduarte/testing-react-components.txt
Fix "ReferenceError: document is not defined" in jsdom + enzyme + ava environment.
/*
* Step 1
*/
npm install --save-dev jsdom
/*
* Step 2 (http://airbnb.io/enzyme/docs/guides/jsdom.html)
*
* test-browser-env.js
@pablopaul
pablopaul / deploy.rb
Last active February 5, 2019 19:19 — forked from cannikin/deploy.rb
Notify Sentry of a new release via Capistrano with Auth Token
# This task will notify Sentry via their API[1] that you have deployed
# a new release. It uses the release timestamp as the `version`
# (like 20151113182847) and the git ref as the optional `ref` value.
#
# This task requires several environment variables be set (or just
# hardcode the values in here if you like living on the edge):
#
# ENV['SENTRY_API_ENDPOINT'] : API endpoint, https://app.getsentry.com
# ENV['SENTRY_ORG'] : the organization for this app
# ENV['SENTRY_PROJECT'] : the project for this app
sloc src/
sudo npm install -g sloc
@pablopaul
pablopaul / redux-store-unsubscribe.js
Created November 21, 2016 12:47
Redux Store Unsubscribe
unsubscribe();
// Nothing is logged
store.dispatch(insertCharacter('z'));
@pablopaul
pablopaul / redux-store-subscriber-demo.js
Created November 21, 2016 12:44
Redux Store Subscriber Demo
// Logs 'x'
store.dispatch(insertCharacter('x'));
// Logs 'xy'
store.dispatch(insertCharacter('y'));
// `removeCharacter` is an action creator wrapping the `BACKSPACE` action
// Logs 'x'
store.dispatch(removeCharacter());
// Logs ''
store.dispatch(removeCharacter());