From 74bd56b2597ac3eb9d98a6edd505850e08ccbfb1 Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Mon, 5 Dec 2022 18:18:52 -0500 Subject: [PATCH] add comment and partially fix test --- packages/server/test/integration/cypress_spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/server/test/integration/cypress_spec.js b/packages/server/test/integration/cypress_spec.js index 129832968d66..575c9d950eb1 100644 --- a/packages/server/test/integration/cypress_spec.js +++ b/packages/server/test/integration/cypress_spec.js @@ -1747,9 +1747,11 @@ describe('lib/cypress', () => { // this should be overridden by the env argument json.baseUrl = 'http://localhost:8080' - const { supportFile, specPattern, excludeSpecPattern, baseUrl, slowTestThreshold, testIsolation, ...rest } = json + // "pick" out the list of properties that cannot exist on the root level so we can re-add them on the "e2e" object + // TODO: refactor this part of the test, this is silly and a holdover from pre-split-config + const { experimentalRunAllSpecs, experimentalOriginDependencies, supportFile, specPattern, excludeSpecPattern, baseUrl, slowTestThreshold, testIsolation, ...rest } = json - return settings.writeForTesting(this.todosPath, { ...rest, e2e: { baseUrl, supportFile, specPattern, testIsolation, excludeSpecPattern } }) + return settings.writeForTesting(this.todosPath, { ...rest, e2e: { experimentalRunAllSpecs, experimentalOriginDependencies, baseUrl, supportFile, specPattern, testIsolation, excludeSpecPattern } }) }).then(async () => { await clearCtx()