Skip to content

Commit

Permalink
refactoring e2e: replaced snapshot plugin; updated to cypress 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed May 14, 2021
1 parent ab66bd5 commit 87b2f62
Show file tree
Hide file tree
Showing 11 changed files with 580 additions and 10,029 deletions.
4 changes: 2 additions & 2 deletions pagy-on-docker/pagy-cypress-uid1000.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM cypress/included:7.2.0
FROM cypress/included:7.3.0

# the upstram dockerfile already provides a node user with UID 1000
# so we configure the image to run as that user
RUN apt-get update && apt-get install -y libcanberra-gtk* \
&& rm -rf /opt/firefox /usr/bin/firefox \
&& ln -s /root/.cache /home/node/.cache \
&& npm install cypress-plugin-snapshots
&& npm install --save-dev @cypress/snapshot

# make sure cypress looks in the right place
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
Expand Down
4 changes: 2 additions & 2 deletions pagy-on-docker/pagy-cypress.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cypress/included:7.2.0
FROM cypress/included:7.3.0

ARG user
ARG group
Expand All @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y libcanberra-gtk* \
&& install -d -m 0755 -o $user -g $user /home/$user \
&& rm -rf /opt/firefox /usr/bin/firefox \
&& ln -s /root/.cache /home/$user/.cache \
&& npm install cypress-plugin-snapshots
&& npm install --save-dev @cypress/snapshot

# make sure cypress looks in the right place
ENV CYPRESS_CACHE_FOLDER=/home/$user/.cache/Cypress
Expand Down
6 changes: 1 addition & 5 deletions test/e2e/cypress.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"experimentalStudio": true,
"ignoreTestFiles": [
"**/__snapshots__/*",
"**/__image_snapshots__/*"
]

}
Loading

0 comments on commit 87b2f62

Please sign in to comment.