I run parallel tests through jenkins. One test passes after that gives an error: "before each" hook"": NoSuchSessionError: invalid session id. And the rest of the tests are submitted.The first test is all the same and passes and the rest of the pad.
beforeEach(async function () {
baseurl = 'URLS'
await HeaderClick.goToUrl(baseurl);
})
afterEach(async function(){
await HeaderClick.quit();
})
async quit(){
await driver.close();
}
async goToUrl(baseurl){
await driver.get(baseurl)
}
I use jenkins + chai + mocha + selenium + node js