Hi,
I want to implement a test, which could be executed across some viewports (desktop/mobile for example).
in Cypress it’s possible to do smth like this
Cypress._.each(["macbook-15", "iphone-x"], viewport => {
it(`some test on ${viewport}`, function() {
cy.viewport(viewport)
// condition if tests differ
if (viewport === "iphone-x") {
// do smth
}
// do smth
so this test will be executed 2 times (2 viewports).
is there a similar way to achieve that in CodeceptJS with Playwright?
Thanks