From bdd03ac004be9c150e0a8b6a5c6fe7d5f5da1d7f Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Tue, 11 Oct 2022 12:13:45 -0700 Subject: [PATCH] Fix detached element error with workaround delay --- cypress/tests/functional/QuickSubmit.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/tests/functional/QuickSubmit.spec.js b/cypress/tests/functional/QuickSubmit.spec.js index 0dd2a7e..4025219 100644 --- a/cypress/tests/functional/QuickSubmit.spec.js +++ b/cypress/tests/functional/QuickSubmit.spec.js @@ -77,6 +77,7 @@ describe('Quick Submit plugin tests', function() { cy.get('a:contains("QuickSubmit Plugin")').click(); cy.get('select[id="sectionId"]').select('Articles'); cy.waitJQuery(); // Wait for form resubmission hack on section change. + cy.wait(2000); // FIXME: Detached element delay cy.get('input[id^="title-en_US-"]').type('QuickSubmit Unpublished Test Submission', {delay: 0}); cy.get('textarea[id^="abstract-en_US-"]').then(node => {