We do something similar in our company for web with playwright but facing a lot of flaky tests.
Will check this out