Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @nextcloud/eslint-config to ^8.3.0-beta.2 (stable25) #4421

Merged
merged 4 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 0 additions & 1 deletion cypress/e2e/share.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @copyright Copyright (c) 2020 Julius Härtl <[email protected]>
*
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/shortcuts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('keyboard shortcuts', () => {
return cy.uploadFile(
'empty.md',
'text/markdown',
`${Cypress.currentTest.title}.md`
`${Cypress.currentTest.title}.md`,
)
})
.then(() => cy.reloadFileList())
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default _chai => {
rect.top < height && rect.bottom > 0 && rect.right <= width && rect.left >= 0,
'expected #{this} to be in the viewport',
'expected #{this} to not be in the viewport',
this._obj
this._obj,
)
})
}
16 changes: 8 additions & 8 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Cypress.Commands.add('shareFile', (path, options = {}) => {
const request = await axios.post(
`${Cypress.env('baseUrl')}/ocs/v2.php/apps/files_sharing/api/v1/shares`,
{ path, shareType: window.OC.Share.SHARE_TYPE_LINK },
{ headers }
{ headers },
)
const token = request.data?.ocs?.data?.token
const id = request.data?.ocs?.data?.id
Expand All @@ -201,7 +201,7 @@ Cypress.Commands.add('shareFile', (path, options = {}) => {
await axios.put(
`${Cypress.env('baseUrl')}/ocs/v2.php/apps/files_sharing/api/v1/shares/${id}`,
{ permissions },
{ headers }
{ headers },
)
cy.log(`Made share ${token} editable.`)
}
Expand All @@ -213,19 +213,19 @@ Cypress.Commands.add('shareFile', (path, options = {}) => {
})

Cypress.Commands.add('createFolder', dirName => cy.window()
.then(win => win.OC.Files.getClient().createDirectory(dirName))
.then(win => win.OC.Files.getClient().createDirectory(dirName)),
)

Cypress.Commands.add('moveFile', (path, destinationPath) => cy.window()
.then(win => win.OC.Files.getClient().move(path, destinationPath))
.then(win => win.OC.Files.getClient().move(path, destinationPath)),
)

Cypress.Commands.add('removeFile', (path) => cy.window()
.then(win => win.OC.Files.getClient().remove(path))
.then(win => win.OC.Files.getClient().remove(path)),
)

Cypress.Commands.add('copyFile', (path, destinationPath) => cy.window()
.then(win => win.OC.Files.getClient().copy(path, destinationPath))
.then(win => win.OC.Files.getClient().copy(path, destinationPath)),
)

Cypress.Commands.add('propfindFolder', (path, depth = 0) => {
Expand Down Expand Up @@ -255,7 +255,7 @@ Cypress.Commands.add('propfindFolder', (path, depth = 0) => {
})

Cypress.Commands.add('reloadFileList', () => cy.window()
.then(win => win.OCA?.Files?.App?.fileList?.reload())
.then(win => win.OCA?.Files?.App?.fileList?.reload()),
)

Cypress.Commands.add('openFolder', (name) => {
Expand Down Expand Up @@ -335,7 +335,7 @@ Cypress.Commands.add('configureText', (key, value) => {
return axios.post(
`${Cypress.env('baseUrl')}/index.php/apps/text/settings`,
{ key, value },
{ headers: { requesttoken: win.OC.requestToken } }
{ headers: { requesttoken: win.OC.requestToken } },
)
})
})
Expand Down
Loading