【发布时间】:2020-11-22 02:47:08
【问题描述】:
我正在测试包含垫滑块的代码,但我无法通过测试设置滑块的值或移动滑块。
我尝试了各种方法,包括这些:
How do interact correctly with a range input (slider) in Cypress?
https://github.com/cypress-io/cypress/issues/1570
到目前为止没有运气。有没有其他办法?
问题是mat-slider不是input=range...当移动slider时,改变的属性是aria-valuenow。我尝试设置它并触发更改或输入,但它并没有起作用。
我需要使用 mousemove 等吗?
【问题讨论】: