-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fix for Cypress bug affecting the snapshots plugin, improved cy…
…press dockerfiles; added cypress studio and basic try
- Loading branch information
Showing
10 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"experimentalStudio": true, | ||
"ignoreTestFiles": [ | ||
"**/__snapshots__/*", | ||
"**/__image_snapshots__/*" | ||
|
This file contains 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
17 changes: 17 additions & 0 deletions
17
test/e2e/cypress/integration/__snapshots__/dummy2.spec.js.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
exports[`Dummy Test > toMatchSnapshot - HTML #0`] = ` | ||
<div id="site-map"> | ||
<a href="/home">home</a> <a href="/bootstrap">bootstrap</a> | ||
<a href="/bulma">bulma</a> <a href="/foundation">foundation</a> | ||
<a href="/materialize">materialize</a> <a href="/navs">navs</a> | ||
<a href="/semantic">semantic</a> <a href="/uikit">uikit</a> | ||
</div> | ||
`; | ||
|
||
exports[`Dummy Test > toMatchSnapshot - HTML #1`] = ` | ||
<div id="site-map"> | ||
<a href="/home">home</a> <a href="/bootstrap">bootstrap</a> | ||
<a href="/bulma">bulma</a> <a href="/foundation">foundation</a> | ||
<a href="/materialize">materialize</a> <a href="/navs">navs</a> | ||
<a href="/semantic">semantic</a> <a href="/uikit">uikit</a> | ||
</div> | ||
`; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// <reference types="cypress" /> | ||
|
||
import { fixCypressSpec } from '../support' | ||
beforeEach(fixCypressSpec(__filename)) | ||
|
||
describe('Test Bootstrap', () => { | ||
it('toMatchSnapshot - HTML', () => { | ||
cy.visit('/bootstrap') | ||
.then(() => { | ||
cy.get('#site-map').toMatchSnapshot(); | ||
}); | ||
}); | ||
|
||
/* === Test Created with Cypress Studio === */ | ||
it('Try Studio', function() { | ||
/* ==== Generated with Cypress Studio ==== */ | ||
cy.visit('/bootstrap'); | ||
cy.get('#nav > .pagination > :nth-child(4) > .page-link').click(); | ||
cy.get('#nav-js-responsive > .pagination > :nth-child(8) > .page-link').click(); | ||
cy.get('.text-primary').click(); | ||
cy.get('.text-primary').clear(); | ||
cy.get('.text-primary').type('34{enter}'); | ||
/* ==== End Cypress Studio ==== */ | ||
}); | ||
}) | ||
|
This file contains 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
This file contains 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
This file contains 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