diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-12 17:41:51 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-03-14 10:55:44 +0100 |
commit | d9e09d5883e6cca4c61c874e1518dc92dd0a1bde (patch) | |
tree | a546621d3fb014ccdf18f4a9ca3fe50cba8ffea9 /cypress.config.ts | |
parent | caa720cbaa1b254e6f81b9d612266c42c91bb958 (diff) | |
download | nextcloud-server-d9e09d5883e6cca4c61c874e1518dc92dd0a1bde.tar.gz nextcloud-server-d9e09d5883e6cca4c61c874e1518dc92dd0a1bde.zip |
test(cypress): Scroll element in the center of the view
This avoid elements to be hided by a fixed top bar.
Especially useful for the file list.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cypress.config.ts')
-rw-r--r-- | cypress.config.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cypress.config.ts b/cypress.config.ts index 8aa4bd48b24..d7e8743434e 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -32,6 +32,10 @@ export default defineConfig({ // faster video processing videoCompression: false, + // Prevent elements to be scrolled under a top bar during actions (click, clear, type, etc). Default is 'top'. + // https://github.com/cypress-io/cypress/issues/871 + scrollBehavior: 'center', + // Visual regression testing env: { failSilently: false, |