Skip to content
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

Add automated test for Epinio UI #1000

Closed
ldevulder opened this issue Nov 17, 2021 · 6 comments
Closed

Add automated test for Epinio UI #1000

ldevulder opened this issue Nov 17, 2021 · 6 comments
Labels
area/QA Excluded from release notes. Quality assurance / Regression testing kind/epic

Comments

@ldevulder
Copy link
Member

We have to find a way to do automated tests on the Epinio UI.

There is multiple ways to do this:

  • only the API (like other Rancher products)
  • as a real user (with something like Selenium)
  • both

Let's discuss the pros and cons of all and anyone can add his ideas here also ;-)

@ldevulder ldevulder added the area/QA Excluded from release notes. Quality assurance / Regression testing label Nov 17, 2021
@kkaempf
Copy link
Contributor

kkaempf commented Nov 18, 2021

Rancher Dashboard is based on Vue and Vue recommends several e2e test frameworks.
And apparently UI developers have already selected Cypress. 😉

@kkaempf kkaempf added this to the Milestone 3 milestone Nov 18, 2021
@catherineluse
Copy link

catherineluse commented Nov 18, 2021

The tests are in the cypress/integrations folder in the dashboard repo. Nancy's initial setup instructions are:

For the cypress test runner to consume the UI, you must specify two environment variables, TEST_USERNAME and TEST_PASSWORD. By default the test runner will attempt to visit a locally running dashboard at https://localhost:8005. This may be overwritten with the DEV_UI environment variable. Run yarn e2e:dev to start the dashboard in SSR mode and open the cypress test runner. Run tests through the cypress GUI once the UI is built. Cypress tests will automatically re-run if they are altered (hot reloading). Alternatively the dashboard ui and cypress may be run separately with yarn dev and yarn cypress open.

@juadk
Copy link
Contributor

juadk commented Nov 19, 2021

Yes, yesterday we talked about Cypress with @prabalsharma and we definitely want to give it a try.
Thanks @catherineluse for the info.

@juadk
Copy link
Contributor

juadk commented Jan 10, 2022

Good progress last week, we are close to the end of the first version I think (improvements will be needed):
Cypress_ok
We are now more familiar Cypress so coding new scenarios is faster.

@juadk
Copy link
Contributor

juadk commented Jan 24, 2022

I think we can close this epic, upgrade and CI will be done in there own cards.

@juadk juadk closed this as completed Jan 24, 2022
Repository owner moved this from Icebox to Done in Epinio planning Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/QA Excluded from release notes. Quality assurance / Regression testing kind/epic
Projects
Archived in project
Development

No branches or pull requests

6 participants