Skip to content

Conversation

@anondo1969
Copy link
Member

@anondo1969 anondo1969 commented Nov 28, 2024

Description

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

The task is to add appropriate tests for these app types where needed in e2e tests.

Types of changes

To indicate the type of change (such as bugfix or new feature), use a github pull request label.

Checklist

If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

  • This pull request is against develop branch (not applicable for hotfixes)
  • I have included a link to the issue on GitHub or JIRA (if any)
  • I have included migration files (if there are changes to the model classes)
  • I have included, reviewed and executed tests (unit and end2end) to complement my changes
  • I have updated the related documentation (if necessary)
  • I have added a reviewer for this pull request
  • I have added myself as an author for this pull request
  • In the case I have modified settings.py, then I have also updated the studio-settings-configmap.yaml file in serve-charts

Further comments

Anything else you think we should know before merging your code!

@anondo1969 anondo1969 self-assigned this Nov 28, 2024
@anondo1969 anondo1969 requested a review from akochari November 28, 2024 09:05
@anondo1969 anondo1969 marked this pull request as ready for review November 28, 2024 09:05
verifyAppStatus(app_name, "Running", "public")

// Verify Gradio app values
cy.logf("Checking that all dash app settings were saved", Cypress.currentTest)
Copy link
Collaborator

@akochari akochari Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cy.logf("Checking that all dash app settings were saved", Cypress.currentTest)
cy.logf("Checking that all Gradio app settings were saved", Cypress.currentTest)

Copy link
Collaborator

@akochari akochari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

verifyAppStatus(app_name, "Running", "public")

// Verify Streamlit app values
cy.logf("Checking that all dash app settings were saved", Cypress.currentTest)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cy.logf("Checking that all dash app settings were saved", Cypress.currentTest)
cy.logf("Checking that all streamlit app settings were saved", Cypress.currentTest)


// check that the app is not visible under public apps
cy.visit('/apps/')
cy.get("title").should("have.text", "Apps and models | SciLifeLab Serve (beta)")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cy.get("title").should("have.text", "Apps and models | SciLifeLab Serve (beta)")

// check that the app is not visible under public apps
cy.visit('/apps/')
cy.get("title").should("have.text", "Apps and models | SciLifeLab Serve (beta)")
cy.get('h3').should('contain', 'Public applications and models')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cy.get('h3').should('contain', 'Public applications and models')

Comment on lines +590 to +591
cy.get("title").should("have.text", "Apps and models | SciLifeLab Serve (beta)")
cy.get('h3').should('contain', 'Public applications and models')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cy.get("title").should("have.text", "Apps and models | SciLifeLab Serve (beta)")
cy.get('h3').should('contain', 'Public applications and models')

@anondo1969 anondo1969 merged commit fcfd762 into develop Nov 28, 2024
2 checks passed
@anondo1969 anondo1969 deleted the SS-1190-Add-e2e-tests-for-gradio-and-streamlit-app-deployment branch November 28, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants