-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work for full end to end conda-store-server tests (#111)
* Initial work for full end to end conda-store-server tests * Adding cypress tests * Try to update conda channels within task * Black formatting * Test login button * Cross origin issues when trying to login via jupyterhub auth * improve usability of the docker button (#110) added a pointer + tooltip fixed namespace field in the URL * Adding new prefix path to tests * Scheduling watch paths to run immediately * Black formatting * Extending tests Co-authored-by: Jaime Rodríguez-Guerra <[email protected]>
- Loading branch information
Showing
13 changed files
with
4,295 additions
and
35 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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"chromeWebSecurity": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cypress/videos/ | ||
cypress/screenshots/ | ||
fixtures/ |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
describe('First Test', () => { | ||
it('Check conda-store home page', () => { | ||
// display home page without login | ||
cy.visit('/conda-store/'); | ||
|
||
// visit login page | ||
cy.visit('/conda-store/login/') | ||
|
||
// click on sign in with jupyterhub | ||
// login through jupyterhub oauth server | ||
cy.get('#login > a') | ||
.should('contain', 'Sign in with JupyterHub') | ||
.click(); | ||
|
||
// fill in username and password and submit | ||
cy.get('#username_input') | ||
.type('conda-store-test'); | ||
|
||
cy.get('#password_input') | ||
.type('test'); | ||
|
||
// for some reason this does not | ||
// respect redirect_uri | ||
cy.get('form').submit(); | ||
|
||
// visit login page | ||
cy.visit('/conda-store/login/') | ||
|
||
// click on sign in with jupyterhub | ||
// login through jupyterhub oauth server | ||
cy.get('#login > a') | ||
.should('contain', 'Sign in with JupyterHub') | ||
.click(); | ||
|
||
// jupyterhub authorize access | ||
cy.get('form > input').click() | ||
cy.url().should('include', 'user') | ||
|
||
// visit home page again | ||
cy.get('a.navbar-brand').click() | ||
|
||
// visit environment | ||
cy.get('h5.card-title > a').contains('filesystem/python-numpy-env').click() | ||
|
||
// visit build | ||
cy.get('li.list-group-item > a').contains('Build').click() | ||
}) | ||
}) |
Oops, something went wrong.