-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cypress: updated images; better open-cypress.yml with persistent conf…
…iguration settings; added snapshots plugin
- Loading branch information
Showing
12 changed files
with
73 additions
and
29 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,10 +1,13 @@ | ||
FROM cypress/included:7.1.0 | ||
FROM cypress/included:7.2.0 | ||
|
||
# the upstram dockerfile already provides a node user with UID 1000 | ||
# so we configure the image to run as that user | ||
RUN ln -s /root/.cache /home/node/.cache | ||
RUN rm -rf /opt/firefox /usr/bin/firefox \ | ||
&& ln -s /root/.cache /home/node/.cache \ | ||
&& npm install cypress-plugin-snapshots | ||
|
||
# make sure cypress looks in the right place | ||
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress | ||
|
||
USER node | ||
RUN mkdir /home/node/.config |
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,6 @@ | ||
{ | ||
"pluginsFile": false, | ||
"supportFile": false | ||
"ignoreTestFiles": [ | ||
"**/__snapshots__/*", | ||
"**/__image_snapshots__/*" | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
test/e2e/cypress/integration/__snapshots__/dummy.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,8 @@ | ||
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> | ||
`; |
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,7 +1,11 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe('Dummy Test', () => { | ||
it('Visits the / page', () => { | ||
it('toMatchSnapshot - HTML', () => { | ||
cy.visit('/') | ||
}) | ||
.then(() => { | ||
cy.get('#site-map').toMatchSnapshot(); | ||
}); | ||
}); | ||
}) | ||
|
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