Testing scroll position in jest or react testing library

后端 未结 0 669
失恋的感觉
失恋的感觉 2021-01-29 05:09

I have an anchor that scrolls the page on click, and I\'m trying to test the Y position of the page to show it changes as expected.

const anchor = screen.getByRol         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题