diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2021-12-17 01:44:05 -0500 |
---|---|---|
committer | Jan Holesovsky <holesovsky@gmail.com> | 2022-01-11 09:28:03 +0100 |
commit | de74eae245fc49f6e9d84c772422efcc78dae5d3 (patch) | |
tree | 09afd24f8ff40e6f8f7a2121365a19bd29706945 /cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js | |
parent | cypress: close the test document before reloading (diff) | |
download | online-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/calc/tunneled_dialog_spec.js')
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js b/cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js index 28ded0e1cf..dd5766d36e 100644 --- a/cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js +++ b/cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js @@ -3,10 +3,11 @@ var helper = require('../../common/helper'); describe('LOK tunnelled dialog tests', function() { - var testFileName = 'tunneled_dialog.ods'; + var origTestFileName = 'tunneled_dialog.ods'; + var testFileName; beforeEach(function() { - helper.beforeAll(testFileName, 'calc'); + testFileName = helper.beforeAll(origTestFileName, 'calc'); }); afterEach(function() { |