Tests passes in chrome but in Headless mode they fail, Why?

Some tests will pass when running in chrome but when you run them in headless mode they fail.
Same goes the other way around ?

Also:

Why do tests fail in Test suite collection but when you run them by them self they pass?