export redundant code for signing in to the app
before(async () => {
await browser.get('/');
navBarPage = new NavBarPage();
signInPage = navBarPage.getSignInPage();
await signInPage.autoSignInUsing('admin', 'admin');
await browser.wait(ec.visibilityOf(navBarPage.entityMenu), 5000);
});
@geyuqiu : Can you provide some more info on the motivation of the change; Do you mean we have redundant code at entity.spec.ts? I am just trying to understand your issue with this piece of code. 馃槃
yes
actually all entities generated by jdl have this in e2e test inside beforeblock, if protractor enabled
sounds reasonable. @geyuqiu, would you like to create a PR refactoring this code?
@geyuqiu : did you start this ?
This ticket has been closed as the guidelines are not followed.
Tickets must follow our Guidelines, as mentioned in:
We have also created a template on the "create a new ticket" page to help you follow those guidelines.
If this is indeed a JHipster bug, please open a new issue with proper details or update this issue with all details and request to reopen.
Issues opened without proper details will be closed without explanation.
If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience: