From de74eae245fc49f6e9d84c772422efcc78dae5d3 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Fri, 17 Dec 2021 01:44:05 -0500 Subject: 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 (cherry picked from commit d998f2c1c8a163c3ef870bbe8581a364df3905bb) Change-Id: I2f41566952c49c9c63ee206bcba6a4dd49cdd6d0 --- cypress_test/integration_tests/mobile/writer/insert_field_spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cypress_test/integration_tests/mobile/writer/insert_field_spec.js') diff --git a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js index b3444b1f9e..b86d79cf0c 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js @@ -5,10 +5,11 @@ var mobileHelper = require('../../common/mobile_helper'); var writerHelper = require('../../common/writer_helper'); describe('Insert fields via insertion wizard.', function() { - var testFileName = 'insert_field.odt'; + var origTestFileName = 'insert_field.odt'; + var testFileName; beforeEach(function() { - helper.beforeAll(testFileName, 'writer'); + testFileName = helper.beforeAll(origTestFileName, 'writer'); // Click on edit button mobileHelper.enableEditingMobile(); -- cgit