From 7a37797f3b8545e992dc9f8a1c60d13ee1a91000 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Thu, 22 Sep 2022 14:09:20 -0400 Subject: [PATCH] (core) tweak duplicate document test to be more reliable Summary: When running as a deployment test, there are some timing issues in the DuplicateDocument test. These tweaks appear to resolve them. Test Plan: checked with staging_deployment test target Reviewers: dsagal Reviewed By: dsagal Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3638 --- test/nbrowser/DuplicateDocument.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nbrowser/DuplicateDocument.ts b/test/nbrowser/DuplicateDocument.ts index 9d8a7895..362815a4 100644 --- a/test/nbrowser/DuplicateDocument.ts +++ b/test/nbrowser/DuplicateDocument.ts @@ -25,7 +25,7 @@ describe("DuplicateDocument", function() { assert.equal(await driver.find('.test-modal-confirm').getAttribute('disabled'), 'true'); // As soon as the textbox is non-empty, the Save button should become enabled. await nameElem.sendKeys('a'); - assert.equal(await driver.find('.test-modal-confirm').getAttribute('disabled'), null); + await driver.findWait('.test-modal-confirm:not(:disabled)', 5000); // Save a copy with a proper name. await gu.completeCopy({destName: 'DuplicateTest1', destWorkspace: 'Test Workspace'});