Skip to content

Commit

Permalink
SS-1236 fixing e2e test for new jupyterlab environments (#277)
Browse files Browse the repository at this point in the history
e2e test for the following task:

Source: https://scilifelab.atlassian.net/browse/SS-1236

We are updating the following four jupyterlab environments:

See https://quay.io/organization/jupyter/

We want to have:

jupyter/pytorch-notebook

jupyter/datascience-notebook

jupyter/tensorflow-notebook

jupyter/minimal-notebook
  • Loading branch information
anondo1969 authored Feb 14, 2025
1 parent cc09ad9 commit a742dd9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cypress/e2e/ui-tests/test-superuser-functionality.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,18 @@ describe("Test superuser access", () => {
cy.contains('.card-title', project_name).parents('.card-body').siblings('.card-footer').find('a:contains("Open")').first().click()
cy.get('div.card-body:contains("' + app_type_env + '")').find('a:contains("Create")').click()
cy.get('#id_name').type(app_name_env)
cy.get('#id_environment').select('Default Jupyter Lab')
cy.logf("Checking that Jupyter Lab has the four different environments", Cypress.currentTest)
// Check the environment dropdown options
cy.get('#id_environment').as('envSelect');
[
'Jupyter Lab Minimal (Default)',
'Jupyter Lab Data Science',
'Jupyter Lab Pytorch',
'Jupyter Lab Tensorflow'
].forEach((name) => {
cy.get('@envSelect').contains('option', name);
});
cy.get('#id_environment').select('Jupyter Lab Minimal (Default)')
cy.get('#submit-id-submit').contains('Submit').click()
cy.get('tr:contains("' + app_name_env + '")', {timeout: longCmdTimeoutMs}).find('span', {timeout: longCmdTimeoutMs}).should('contain', 'Running')

Expand All @@ -313,7 +324,7 @@ describe("Test superuser access", () => {
cy.contains('.card-title', project_name).parents('.card-body').siblings('.card-footer').find('a:contains("Open")').first().click()
cy.get('tr:contains("' + app_name_env + '")').find('i.bi-three-dots-vertical').click()
cy.get('tr:contains("' + app_name_env + '")').find('a').contains('Settings').click()
cy.get('#id_environment').find(':selected').should('contain', 'Default Jupyter Lab')
cy.get('#id_environment').find(':selected').should('contain', 'Jupyter Lab Minimal (Default)')
cy.get('#id_environment').select(new_environment_name)
cy.get('#submit-id-submit').contains('Submit').click()
cy.get('tr:contains("' + app_name_env + '")', {timeout: longCmdTimeoutMs}).find('span', {timeout: longCmdTimeoutMs}).should('contain', 'Running')
Expand Down

0 comments on commit a742dd9

Please sign in to comment.