This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| derp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('does stuff', async () => { | |
| cy.firstCyCommand() //Enqueue | |
| cy.secondCyCommand() //enqueue | |
| const val = await firstFunction() // Awaits firstFunction promise | |
| cy.thirdCyCommand() //enqueue | |
| secondFunction() // runs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script> | |
| setTimeout(() => { | |
| const sessionStorage = window.sessionStorage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('window:before:load event', () => { | |
| Cypress.Screenshot.defaults({ | |
| stuff: true | |
| })// this only applies to the primary domain | |
| cy.visit('/fixtures/multi-domain.html') | |
| cy.intercept('foobar.com/api') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /* eslint-disable no-console */ | |
| /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ | |
| const fs = require('fs'); | |
| const filePath = './CHANGELOG.md'; | |
| const output = fs.readFileSync(filePath, 'utf8'); | |
| const withoutH3 = output.replace(/### /g, ''); | |
| const withH1 = withoutH3.replace('Changelog', '# Changelog'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LOGGER_ENABLED = process.env.NODE_ENV !== 'production'; | |
| const NO_OP = () => {}; | |
| /* eslint-disable no-console */ | |
| const Logger = { | |
| info: LOGGER_ENABLED ? console.log : NO_OP, | |
| warn: LOGGER_ENABLED ? console.warn : NO_OP, | |
| error: console.error, | |
| }; | |
| /* eslint-enable no-console */ |
version: '3'
services:
standalone-chrome:
image: 'selenium/standalone-chrome:3.14.0-helium'
ports:
- '4444'
# Necessary due to some issues with chrome in docker. See https://github.com/SeleniumHQ/docker-selenium#running-the-images
volumes:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import DynamicImportWrapper from './_DynamicImportWrapper'; | |
| const propTypes = { | |
| /** | |
| * The content to be placed within the main content area of the container. | |
| */ | |
| content: PropTypes.func, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const defaultConfig = require('terra-dev-site/config/wdio/wdio.conf'); | |
| const { LocalCompare } = require('wdio-visual-regression-service/compare'); | |
| const path = require('path'); | |
| const webpackConfig = require('./webpack.config'); | |
| const testIdRegex = /\[([^)]+)\]/; | |
| function testName(parent, title) { | |
| const matches = testIdRegex.exec(title); | |
| const parentName = parent.replace(/[\s+.]/g, '_'); |
NewerOlder