I am faced with a challenge in my web application where I have a series of functions that simulate login and run through various features. These functions are written in JS using nightwatch.js and selenium via browserstack. The issue is that all the functions report as one large test in browserstack. Is there a way to make each function report as a separate test in browserstack?
this.Settings = function(browser) {
browser
.url(Data.urls.settings)
.waitForElementVisible("div.status-editor .box", 1000)
Errors.checkForErrors(browser);
browser.end();
};
this.TeamPanel = function(browser) {
browser
Errors.checkForErrors(browser);
browser.end();
};