Skip to content

Instantly share code, notes, and snippets.

View bjankord's full-sized avatar
🎵
Chillin'

Brett Jankord bjankord

🎵
Chillin'
View GitHub Profile
/* eslint-disable no-unused-expressions */
/* global browser, Terra, before */
describe('Checkbox', () => {
before(() => browser.setViewportSize(Terra.viewports('medium')[0]));
const themingProperties = {
'--terra-form-checkbox-font-color': '#111619',
'--terra-form-checkbox-container-margin-bottom': '0.625rem',
'--terra-form-checkbox-container-margin-right': '1.071rem',
@bjankord
bjankord / output.sh
Created April 26, 2018 21:36
terra-framework-wdio-theme-output
․․․․․․․․․․․․․F․FFF․․․․․․F․F․․F․F․F․․․F․․․․․F․․․․․․․․F․․․F․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․F․․F․․․․․․․․․․․F․․․F․FFFFFFFFFFFFFFFFF․FF․F․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․F․․․․․․․․․․․․․․․․․․․․․․․․․F․FFFFFFFFF․FFF․․․․․․F․․․FF․․․․․․F․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
559 passing (978.30s)
55 failing
1) ApplicationHeader Displays a default application header [#test-header] to be within the mismatch tolerance:
expected to be within the mismatch tolerance, but received the following comparison results
{
"viewport": "small",
"misMatchPercentage": 0.04
@bjankord
bjankord / install-time.md
Last active April 19, 2018 01:29
terra-core-install-time
Command Time
npm install 1627.22s user 206.98s system 318% cpu 9:35.32 total
yarn install 143.29s user 47.14s system 95% cpu 3:19.25 total
npm install (w/ lerna bootstrap and --hoist) 236.45s user 63.48s system 143% cpu 3:29.34 total
npm install (w/ lerna bootstrap and --hoist and root package-lock.json) 172.77s user 47.41s system 180% cpu 2:01.83 total
@bjankord
bjankord / gist:2399828
Created April 16, 2012 16:35
Accurate cross-browser viewport width
/* -----------------------------------------------
* Accurate Cross-Browser Viewport Width
* https://gist.github.com/2399828
* -----------------------------------------------
* Copyright 2012, Brett Jankord.
* http://www.brettjankord.com/
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
* ------------------------------------------------*/
@bjankord
bjankord / blue-outline.css
Created November 21, 2017 17:16
Odd chrome focus styles
background-color: rgba(0, 0, 0, 0);
border-bottom-color: rgb(0, 0, 0);
border-bottom-style: none;
border-bottom-width: 0px;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(0, 0, 0);
@bjankord
bjankord / tabs.js
Created November 5, 2017 02:42
Disabling css modules for global CSS via https://twitter.com/kylewelch/status/923586056016093184
import 'rc-tabs/assets/index.css?global';
c:\installs\workspaces\dustin-terra\terra-core>npm test
> terra-core@0.1.0 pretest c:\installs\workspaces\dustin-terra\terra-core
> npm run lint
> terra-core@0.1.0 lint c:\installs\workspaces\dustin-terra\terra-core
> npm run lint:js && npm run lint:scss
yarn install v1.0.1
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning "ajv-keywords@1.5.1" has incorrect peer dependency "ajv@>=4.10.0".
warning "postcss-reporter@4.0.0" has incorrect peer dependency "postcss@^6.0.0".
warning "babel-loader@7.1.2" has incorrect peer dependency "webpack@2 || 3".
warning "extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
warning "html-webpack-plugin@2.30.1" has incorrect peer dependency "webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3".
@bjankord
bjankord / test-failures.sh
Created September 11, 2017 14:27
Test failures with yarn
TEST FAILURE: 4 assertions failed, 4907 passed. (10m 37s)
✖ nightwatch/alert-spec
- [@tiny] Displays a default alert with the provided text (9.842s)
Testing if element <#defaultAlert > div[class*="body"] > div[class*="section"] > strong[class*="title"]> contains text: "Alert.". after 1000 milliseconds. - expected "Alert." but got: "Terra.alert.alert"
at Object.Displays a default alert with the provided text (/Users/bj031910/repos/terra-core/packages/terra-alert/tests/nightwatch/alert-spec.js:13:20)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
SKIPPED: