Luckily we have browser behavioural tests in Web Platform Tests but those also come with issues.
▪️WPT is primarily for browser vendors so there’s a bunch that is irrelevant to devs
▪️there are inconsistencies in test quality
▪️some web features are really difficult to test properly.