菜单
工具

Loki

NOT ON THE CURRENT EDITION
This blip is not on the current edition of the radar. If it was on one of the last few editions it is likely that it is still relevant. If the blip is older it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the radarUnderstand more
Nov 2019
试验?

Loki是一个配合Storybook使用的可视化回归工具,我们在UI开发环境中提到过Storybook。只需几行配置,就可以使用Loki测试所有UI组件。推荐在Docker容器中使用Chrome,以避免在不同的环境中运行测试时出现的1像素差异问题。我们的经验是测试非常稳定,但是Storybook的更新往往会由于细微的差异而导致测试失败。Loki似乎也无法测试使用position:fixed的组件,但可以使用fixed包装组件来规避这个问题。