tests(e2e): generalized beforeEach