karma icon indicating copy to clipboard operation
karma copied to clipboard

Tests pass only in debug mode (with `--browsers=Chrome` flag)

Open skyRoma opened this issue 1 year ago • 0 comments

Hi Guys! My angular tests pass only when chrome is running.

In my tests, I operate with the position of the element on the page using the getBoundingClientRect, Also I use scrolling to the desired element using scrollIntoView. But the tests pass only for those elements that are visible without scrolling (but pass! it means that these methods above are actually working with the ChromeHeadless flag).

Expected: Tests pass with nx test --browsers=Chrome and nx test --browsers=ChromeHeadless

Actual: Tests pass only with nx test --browsers=Chrome

Could you possible suggest any advice? Thank you

skyRoma avatar Jan 23 '23 15:01 skyRoma