首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Solution for Lead OPA test error ( add button clicked after cancel button )

问题的表现是我们的test code里点了cancel button之后,再点Add button,这行语句报错:在dialog里找不到这个期望的product ?...在引起OPA fail的上一行语句,add button会call Dialog.open,但是此时open没有真正执行,因为line 415就已经返回了。 ?...为什么之前Cancel button已经调用了Popup.close,但是 随后Open的时候isOpen仍然返回true? ?...但是我们随后的Add button click发生在这210毫秒之前,因此此时dialog的bOpen还为true,因此第二次Add button的执行并不能打开Dialog。 ?...Solution 第一种改法: Product.js 做如下修改,这样每次点击add button会生成新的Dialog instance,避免了share同一个instance导致的问题。

94530
领券