Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Before(function () {
return this.stage.theActorCalled('Apisitt').attemptsTo( // todo: change to Maggie
StartLocalServer.onRandomPort(),
ChangeApiUrl.to(LocalServer.url()),
// TakeNote.of(LocalServer.url()) // Question or Question; Pass between actors
);
});
beforeEach(() => Sid.attemptsTo(StartLocalServer.onRandomPort()));
afterEach(() => Sid.attemptsTo(StopLocalServer.ifRunning()));
When(/^(.*) navigates to the test website$/, function(this: WithStage, actorName: string) {
return this.stage.actor(actorName).attemptsTo(
StartLocalServer.onRandomPort(),
UseAngular.disableSynchronisation(),
Navigate.to(LocalServer.url()),
);
});