summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop/writer/statusbar_spec.js
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2021-12-17 01:44:05 -0500
committerJan Holesovsky <holesovsky@gmail.com>2022-01-11 09:28:03 +0100
commitde74eae245fc49f6e9d84c772422efcc78dae5d3 (patch)
tree09afd24f8ff40e6f8f7a2121365a19bd29706945 /cypress_test/integration_tests/desktop/writer/statusbar_spec.js
parentcypress: close the test document before reloading (diff)
downloadonline-de74eae245fc49f6e9d84c772422efcc78dae5d3.tar.gz
online-de74eae245fc49f6e9d84c772422efcc78dae5d3.zip
cypress: give each test a unique test document
We copy each test document into the work-dir and now we also give them a random prefix. This is critical to ensure that parallel runs do not re-use the same document. Also, when closing a document, we wait for the document-name to disappear from the admin console. Sharing the same document, or even the name, means we are likely to see random results. Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk> (cherry picked from commit d998f2c1c8a163c3ef870bbe8581a364df3905bb) Change-Id: I2f41566952c49c9c63ee206bcba6a4dd49cdd6d0
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer/statusbar_spec.js')
-rw-r--r--cypress_test/integration_tests/desktop/writer/statusbar_spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/statusbar_spec.js b/cypress_test/integration_tests/desktop/writer/statusbar_spec.js
index 94bc224507..843519f0a0 100644
--- a/cypress_test/integration_tests/desktop/writer/statusbar_spec.js
+++ b/cypress_test/integration_tests/desktop/writer/statusbar_spec.js
@@ -4,10 +4,11 @@ var helper = require('../../common/helper');
var desktopHelper = require('../../common/desktop_helper');
describe('Statubar tests.', function() {
- var testFileName = 'statusbar.odt';
+ var origTestFileName = 'statusbar.odt';
+ var testFileName;
beforeEach(function() {
- helper.beforeAll(testFileName, 'writer');
+ testFileName = helper.beforeAll(origTestFileName, 'writer');
if (Cypress.env('INTEGRATION') === 'nextcloud') {
desktopHelper.showStatusBarIfHidden ();