-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/expose-login-method #1652
Conversation
Thank you for your contribution! 🚀 |
Hello guys, do you have any idea how soon can you merge this? Thanks. |
Hello @ionutcirja I have checked your PR and it is working. Since I would like to see the the stuff tested, I have created the e2e test for you. it('Trigger Login and Logout with Core API', () => {
newConfig.navigation.profile = undefined;
newConfig.auth.disableAutoLogin = true;
visitWithAuthConfig('/', newConfig);
cy.get('[data-testid="luigi-topnav-profile"] button').click();
loginLink().should('exist');
cy.window().then(win => {
cy.log('Trigger auth().login()');
win.Luigi.auth().login();
});
cy.login('[email protected]', 'tets', true);
cy.get('[data-testid="luigi-topnav-profile"] button').click();
logoutLink().should('exist');
cy.window().then(win => {
cy.log('Trigger auth().logout()');
win.Luigi.auth().logout();
});
cy.contains('Login again');
}); FYI: To let this test run locally, run We will try to merge it today, then you would be able to use the nightly (-dev) build tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks! 👍
I guess a missing |
Description
Changes proposed in this pull request: