forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use email exact text as username (#208)
* Use email exact text as username * Remove dockle and hadolint
- Loading branch information
Showing
4 changed files
with
37 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,21 @@ describe('Landing Page', () => { | |
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #emailDisplay').find('span').should('exist').and('have.text', '[email protected]'); | ||
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #namespaceDisplay').find('span').should('exist').and('have.text', 'user-name'); | ||
}); | ||
it('Email number should stay in namespace', ()=>{ | ||
cy.intercept('GET', `/api/workgroup/exists`, { | ||
"hasAuth":true, | ||
"user":"[email protected]", | ||
"email": "[email protected]", | ||
"hasWorkgroup":false, | ||
"registrationFlowAllowed": true, | ||
"isAllowed": true | ||
}).as('mockWorkgroupRequest'); | ||
cy.visit('/'); | ||
|
||
cy.wait(['@mockWorkgroupRequest', '@mockDashboardLinksRequest']); | ||
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #emailDisplay').find('span').should('exist').and('have.text', '[email protected]'); | ||
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #namespaceDisplay').find('span').should('exist').and('have.text', 'user-name1'); | ||
}); | ||
|
||
it('should create new namespace and notebook', ()=>{ | ||
//Not asserting landing page username and namespace values since it's asserted in the test above | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters