Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
import axios from '@nextcloud/axios'

addCommands()
addCompareSnapshotCommand()
addCompareSnapshotCommand({
errorThreshold: 0.01,
})

const url = Cypress.config('baseUrl').replace(/\/index.php\/?$/g, '')
Cypress.env('baseUrl', url)
Expand All @@ -34,7 +36,7 @@
/**
* cy.uploadedFile - uploads a file from the fixtures folder
*
* @param {User} user the owner of the file, e.g. admin

Check warning on line 39 in cypress/support/commands.ts

View workflow job for this annotation

GitHub Actions / NPM lint

The type 'User' is undefined
* @param {string} fixture the fixture file name, e.g. image1.jpg
* @param {string} mimeType e.g. image/png
* @param {string} [target] the target of the file relative to the user root
Expand Down
Loading