Skip to content

Instantly share code, notes, and snippets.

View patthiel's full-sized avatar
👨‍🔬
Building Cloud Labs 🔬

Pat Thiel patthiel

👨‍🔬
Building Cloud Labs 🔬
View GitHub Profile
@patthiel
patthiel / better_github_git_checkout.sh
Last active December 10, 2019 14:35
Fix Github Copy Branch button when checking out Forks
# Github's Copy branch to clipboard helper button does not play nice with forks
# This will `patthiel:foo/bar` and turn it into a git friendly `patthiel/foo/bar`
#!/usr/bin/env bash
if [[ $1 =~ ":" ]]; then
new_branch=$(echo $1 | sed 's/.*://g')
echo $new_branch | xargs git checkout
else
git checkout $@
@patthiel
patthiel / advancedsettings.xml
Created September 25, 2017 01:30
LibreElec Advanced Settings
<advancedsettings>
<cache>
<memorysize>157286400</memorysize>
<buffermode>1</buffermode>
<readfactor>4.0</readfactor>
</cache>
</advancedsettings>
WARNING: the "submit" command will be depcrecated soon. Please use a different command in order to avoid failures in your test after updating WebdriverIO.
․F
1 passing (62.60s)
1 failing
1) URBNWeb - SMOKE - Header - Language Toggle - Navigationsuite1 URBNWeb - SMOKE - Header - Set Language Cookie - Navigation - To Product:
Failed: element ("[data-qa-language-option="fr-FR"]") still not visible after 10000ms
running chrome
Error: element ("[data-qa-language-option="fr-FR"]") still not visible after 10000ms
@patthiel
patthiel / bugtemplate.csv
Created June 7, 2017 19:24
autofill bug template
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
### PROFILES ###,,,,
Profile ID,Name,Site,Overwrite,
c1,JiraBug,,0,
### AUTOFILL RULES ###,,,,
Type,Name,Value,Site,Profile
0,"^description$","*Brand + Environment*
- All known environments and brands that the defect is occurring in.
*Bug Description*
- A quick natural language overview of what you were trying to do when the bugappeared.
function startMbServer(port) {
return tcpPortUsed.check(port, '127.0.0.1')
.then( function(inUse) {
if (inUse == true) {
return Promise.resolve(`Port ${port} is already in use!`);
}
if (inUse == false) {
const options = {
'port' : port,
describe('My Example Suite', () => {
it('should pass', () => {
expect(true).toBe(true)
})
// We should display the pending reason
it('should pend with a reason', () => {
pending('PENDING BECAUSE OF THIS REASON')
})
})
userName23:myrepo thielp1$ gulp wdio
[14:00:39] Requiring external module babel-core/register
[14:00:42] Using gulpfile ~/Developer/myrepo/gulpfile.babel.js
[14:00:43] Starting 'wdio'...
0 passing (26.00s)
describe('Wdio waitforExist Suite', () => {
it('Wait For Exist Timeout', () => {
browser.url('http://www.apple.com');
browser.waitForExist('something', 5000);
});
it('should not timeout', () => {
browser.waitForExist('.ac-gn-link ac-gn-link-watch', 5000);
});
14:04:58.907 INFO - Executing: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@561881d5, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, maxInstances=2, unexpectedAlertBehaviour=accept, requestOrigins={name=webdriverio, version=4.2.15, url=http://webdriver.io}}]])
14:04:58.908 INFO - Creating a new session for Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@561881d5, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, maxInstances=2, unexpectedAlertBehaviour=accept, requestOrigins={name=webdriverio, version=4.2.15, url=http://webdriver.io}}]
Starting ChromeDriver 2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6) on port 42079
Only local connections are allowed.
14:04:59.521 INFO - Done: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@561
@patthiel
patthiel / my-account-chrome.log
Created September 7, 2016 21:19
My Account Chrome Test Run
uoianthielp1:ANCom thielp1$ gulp wdio -c=account --dev
[17:06:46] Requiring external module babel-core/register
[17:06:49] Using gulpfile ~/Developer/ANCom/gulpfile.babel.js
[17:06:49] Starting 'wdio'...
pattern brandweb/integration/account/**/*spec.js did not match any file
․․․․․․F․․․F․․․․․․․F․․․F․․․․․F․․․․․․․․․F․․․․F․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․F․․F․․․․․․․․․․․F․․․F․․․․F
78 passing (589.30s)
9 pending