I am trying to test the same logic hosted on different domains by using multiple it functions, not ONLY one. It works when I use one but fails when using multiple.
Does anyone have any suggestions based on experience on how to approach this?
My code:
const domains = require("../fixtures/domains.js")
context(`description here`, function () {
domains.urls.forEach(domain => {
before(function () {
cy.server()
})
after(function () {
cy.clearCookie("")
})
And then want to have multiple it function per case.
it('should ', function () {
//do something
});
it('should ', function () {
//do something
});
it('should ', function () {
do something
});