Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-08-10 15:25:29 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-08-10 15:25:29 -0400
commite24038503bf4af01a668fa9a1ed5b9b51c3a4da5 (patch)
tree35b8fe418f0f8f45907bd971a7896d6bf99bf14f /test
parent2e88e9795c7b510d77748c4413b133b8e1c8ca01 (diff)
downloadliza-e24038503bf4af01a668fa9a1ed5b9b51c3a4da5.tar.gz
liza-e24038503bf4af01a668fa9a1ed5b9b51c3a4da5.tar.bz2
liza-e24038503bf4af01a668fa9a1ed5b9b51c3a4da5.zip
[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
Diffstat (limited to 'test')
-rw-r--r--test/client/dapi/DataApiMediatorTest.js2
1 files changed, 2 insertions, 0 deletions
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 );