Changed to max-width/height so small images don't get scaled to 100% #3066
Workflow file for this run
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
name: e2e Tests | DEV | |
on: [push] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-20.04 | |
# There is currently a bug on chrome 100 that adds an extra space in the editor.= | |
# container: cypress/browsers:node14.17.6-chrome100-ff98 | |
# container: cypress/browsers:node14.17.0-chrome88-ff89 | |
container: cypress/browsers:node16.5.0-chrome94-ff93 | |
name: E2E on Tests (DEV) | |
strategy: | |
matrix: | |
browser: ['chrome', 'firefox'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: 7.4.0 | |
run_install: true | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
install: false | |
browser: ${{ matrix.browser }} | |
env: NEXT_PUBLIC_USE_LOCAL_CLIENT=1 | |
build: pnpm build:e2e | |
command: pnpm test:e2e | |
start: pnpm start:e2e:dev | |
wait-on: 'http://localhost:3000' | |
# wait for 3 minutes for the server to respond | |
wait-on-timeout: 180 | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
# Test run video was always captured, so this action uses "always()" condition | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos |