Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test deps and conf #14735

Merged
merged 8 commits into from
Mar 18, 2019
Merged

update test deps and conf #14735

merged 8 commits into from
Mar 18, 2019

Conversation

wacky6
Copy link
Contributor

@wacky6 wacky6 commented Mar 16, 2019

升级了一下测试相关的依赖。yarn dist产出的 lib/ 并未因此 commit 改变。

  • travis 环境换成 node 10
  • chrome 版本指定为 stable,原来一直在chrome 62上跑
  • 测试用 headless 跑
  • 测试可以用 async await 了;添加 wait 和 waitImmediate 方法方便写用例
  • 修了因为升级依赖挂掉的测试用例
  • 试验性迁移了一部分测试用例到 async await

接下来可以做的:

  • 清理测试里面的 nextTick / $nextTick 用法。里面的 assert 不会被测试框架捕获。换成 waitImmediate
  • 现有测试用例往 async 写法迁移
  • createTest / createVue 默认全部 mount (挂在到 DOM 里)
  • 鼠标、键盘操作的帮助方法 (helper)
  • eslint 禁用测试代码里面的 nextTick 调用,现在还没找到这样的配置。

@element-bot
Copy link
Member

element-bot commented Mar 16, 2019

Deploy preview for element ready!

Built with commit 9356184

https://deploy-preview-14735--element.netlify.com

@island205 island205 added this to the 2.7.0 milestone Mar 16, 2019
@island205 island205 modified the milestones: 2.7.0, 2.6.2 Mar 18, 2019
@ziyoung
Copy link
Contributor

ziyoung commented Mar 18, 2019

调整 tree 的测试用例。在测试中,即便是出现异常,只要断言没问题,就算测试通过。挺反常的。😰

@wacky6 现在 npm run test:watch 有点问题。watch 不生效了。(Tree 不规范测试用例导致的)

@ziyoung ziyoung merged commit 9c7fcf3 into ElemeFE:dev Mar 18, 2019
weisiren168 pushed a commit to weisiren168/element that referenced this pull request Jun 20, 2019
* test: run in headless chrome

* chore: update travis node version

* chore: upgrade test deps

* test: fix tests

* test: support async await

* test: fix tree test case

* test: fix tree test cases

* test: fix popper test case
lzq4047 pushed a commit to lzq4047/element that referenced this pull request May 22, 2020
* test: run in headless chrome

* chore: update travis node version

* chore: upgrade test deps

* test: fix tests

* test: support async await

* test: fix tree test case

* test: fix tree test cases

* test: fix popper test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants