From e36a521807f100ae316ff92c8f1eb80699b6a3f6 Mon Sep 17 00:00:00 2001 From: "philip.cline" Date: Tue, 7 Nov 2023 09:39:17 -0500 Subject: [PATCH] refactor(e2e tests): account for snapshot modal --- __tests__/end-to-end.js | 4 ++++ lib/common/components/ExportPatternsModal.js | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/__tests__/end-to-end.js b/__tests__/end-to-end.js index 1e0104e29..0f4eba539 100644 --- a/__tests__/end-to-end.js +++ b/__tests__/end-to-end.js @@ -2776,6 +2776,10 @@ describe('end-to-end', () => { // wait for snapshots tab to load and publish snapshot await waitForAndClick('[data-test-id="publish-snapshot-button"]') + + // wait for snapshot export modal and click "no" to proprietary file export + await waitForAndClick('[data-test-id="export-patterns-modal-no"]') + // wait for version to get created await waitAndClearCompletedJobs() diff --git a/lib/common/components/ExportPatternsModal.js b/lib/common/components/ExportPatternsModal.js index c3ca2038d..815606903 100644 --- a/lib/common/components/ExportPatternsModal.js +++ b/lib/common/components/ExportPatternsModal.js @@ -49,10 +49,17 @@ export default class ExportPatternsModal extends React.Component { {this.messages('exportPatterns')} - -