Skip to content

Commit

Permalink
chore(deps): cypress snapshot update
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
nextcloud-command authored and skjnldsv committed Sep 5, 2024
1 parent 45ef7bb commit 8733e56
Show file tree
Hide file tree
Showing 12 changed files with 7,236 additions and 7,945 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"globals": {
"appName": true,
"appVersion": true,
"INJECT_CYPRESS_FONT": true,
"PLYR_ICONS": true,
"oc_defaults": true,
"__dirname": true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ jobs:
- name: Set up npm ${{ needs.init.outputs.npmVersion }}
run: npm i -g npm@"${{ needs.init.outputs.npmVersion }}"

- name: Install standard font
run: apt update && apt install -y fonts-roboto

- name: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} cypress tests
uses: cypress-io/github-action@1b70233146622b69e789ccdd4f9452adc638d25a # v6.6.1
with:
Expand Down
3 changes: 1 addition & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { configureVisualRegression } from 'cypress-visual-regression/dist/plugin
import { defineConfig } from 'cypress'
import cypressSplit from 'cypress-split'


export default defineConfig({
projectId: 'xysa6x',

Expand All @@ -26,7 +25,7 @@ export default defineConfig({

// Visual regression testing
env: {
failSilently: false,
visualRegressionFailSilently: false,
visualRegressionType: 'regression',
},
screenshotsFolder: 'cypress/snapshots/actual',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*
*/

import { addCommands, User } from '@nextcloud/cypress'
import { addCommands } from '@nextcloud/cypress'
import { addCompareSnapshotCommand } from 'cypress-visual-regression/dist/command'
import { basename } from 'path'
import axios from '@nextcloud/axios'
import { addCompareSnapshotCommand } from 'cypress-visual-regression/dist/command'

addCommands()
addCompareSnapshotCommand()
Expand Down Expand Up @@ -120,8 +120,8 @@ Cypress.Commands.add(
'clickAction',
{ prevSubject: 'element' },
(subject, action) => {
subject.find('[data-cy-files-list-row-actions] button').click()
cy.get(`[data-cy-files-list-row-action="${action}"]`).click()
subject.find('[data-cy-files-list-row-actions] [aria-label="Actions"]').click()
cy.get(`[data-cy-files-list-row-action="${action}"] [role="menuitem"]`).click()
},
)

Expand Down
Loading

0 comments on commit 8733e56

Please sign in to comment.