提交 9dfb58a7 编写于 作者: H hdx

keep-alive: 补充测试例,没有测出上个组件被成功移除的情况

上级 d09b49ff
......@@ -29,7 +29,9 @@ describe('keep-alive', () => {
const activatedNum = await page.$('#activated-num')
expect(await activatedNum.text()).toBe('activated num: 1')
const deactivatedNum = await page.$('#deactivated-num')
expect(await deactivatedNum.text()).toBe('deactivated num: 0')
expect(await deactivatedNum.text()).toBe('deactivated num: 0')
const shouldExcludeBtns2 = await page.$$('.should-exclude-btn')
expect(shouldExcludeBtns2.length).toBe(0)
const counterBtns = await page.$$('.counter-btn')
for (let i = 0; i < counterBtns.length; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册