The useragent for playwright is "playwright-test". REGEX_MOBILE_OR_TABLET2.test("playwright-test".slice(0, 4)) resolves to true. I think that should not happen.