美文网首页SAP
SAP 电商云 Spartacus UI 回归测试 b2b-re

SAP 电商云 Spartacus UI 回归测试 b2b-re

作者: 华山令狐冲 | 来源:发表于2022-01-12 11:52 被阅读0次

路径:b2b-replenishment-checkout-flow.core-e2e-spec.ts

三个 spec 报错:

montly, daily, weekly, 其实可以合为一个。

should select delivery mode

都是说找不到 cx-checkout-title

cx-checkout-title class 选择器,而不是元素选择器。

本地测试的话,先要启动 B2b Storefront 吗?

应该是,截图里显示的 powertool.

helper/b2b-checkout.ts line 158

这段代码里出的错:


UI 已经成功下单了,但是代码才执行到 delivery mode 的逻辑:


selectAccountDeliveryMode 在下列两处被调用:

it 与 it 之间会不会相互影响?

对于 b2b checkout 来说,delivery mode 选择完了之后直接 review order 了:

还是 detached from DOM 的老错误:


为什么 171 行出错之后还能继续往下执行?

往下就是等待 put 操作成功完成:


也没能等到 put 成功完成:


三次 attempt,每次报的错都不一样,第一次报的错是 detached from DOM:

同样加上 force:true 参数后,should select delivery mode 这一步就通过了:


更多Jerry的原创文章,尽在:"汪子熙":


相关文章

网友评论

    本文标题:SAP 电商云 Spartacus UI 回归测试 b2b-re

    本文链接:https://www.haomeiwen.com/subject/jqpiqrtx.html