From e24038503bf4af01a668fa9a1ed5b9b51c3a4da5 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 10 Aug 2018 15:25:29 -0400 Subject: [bugfix] DapiMediator: Wait for stack to clear before updating options This allows the UI to update before we add elements. This really isn't the best place to do this, but it will do for now. DEV-3257 --- test/client/dapi/DataApiMediatorTest.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/client/dapi/DataApiMediatorTest.js b/test/client/dapi/DataApiMediatorTest.js index 62e12b1..6bf2017 100644 --- a/test/client/dapi/DataApiMediatorTest.js +++ b/test/client/dapi/DataApiMediatorTest.js @@ -368,6 +368,8 @@ describe( "DataApiMediator", () => [name]: { setOptions( given_name, given_index, given_data, given_cur ) { + expect( stack_cleared ).to.be.true; + // index is implicitly tested by the given_cur line expect( given_name ).to.equal( name ); expect( given_data ).to.deep.equal( val_label ); -- cgit v1.2.1