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 7e172a5
Show file tree
Hide file tree
Showing 11 changed files with 7,233 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: 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 7e172a5

Please sign in to comment.