text/cypress
Julius Härtl c5fd010140
chore: Skip files list in sharing tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-26 17:34:15 +01:00
..
component
e2e chore: Skip files list in sharing tests 2024-03-26 17:34:15 +01:00
fixtures fix(preview): allow preview for links followed by whitespace 2024-03-07 12:47:56 +01:00
snapshots/base/print.spec.js
support test: Update cypress selector 2024-03-21 20:23:06 +01:00
utils
.env
.eslintrc.json
Dockerfile
README.md
docker-compose.yml
entrypoint.sh
runLocal.sh

README.md

Cypress tests

There are some custom cypress commands available making it easier to write tests, for example you can get the editor content and insert text by using

cy.getContent()
    .type('some test')

Available custom commands

Command Function Parameters
uploadFile Upload file fileName, mimeType, target
createFile Create file target, content, mimeType
moveFile Move a file path, destinationPath
copyFile Copy file path, destinationPath
createFolder Create a folder dirName
shareFileToUser Share a file with user userId, password, path, targetUserId
openFile Open file in Viewer / Editor fileName, clickParams
closeFile Close the current file
getFile Get file list element of file fileName
deleteFile Remove a file fileName
reloadFileList Refresh the file list
getEditor Get TipTap Editor element
getContent Get editor content
clearContent Clear the editor content
getMenu Get editor menu bar
getMenuEntry Same as getActionEntry but also searches the overflow menu name
getSubmenuEntry Open parent menu and then return sub menu entry parent, name
getActionEntry Get menu entry name
getActionSubEntry Get submenu entry (after menu clicked) name
openWorkspace Open workspace and return Editor content

We also use some commands from the @nextcloud/cypress package.