Jak*_*Sip 5 regex automated-tests web-testing e2e-testing testcafe
我想在正则表达式断言中添加一个变量“ example”。
const example = Selector('xyz');
await t.expect(getLocation()).match(/^https:\/\/int-.*.example.com\/en\/example\/-\/ ** HERE SHOULD BE INSERTED A VARIABLE, 'example' ** \/$/)
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
| 归档时间: |
|
| 查看次数: |
106 次 |
| 最近记录: |