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

e2e/integration test setup #33

Closed
hahn-kev opened this issue Mar 30, 2023 · 2 comments
Closed

e2e/integration test setup #33

hahn-kev opened this issue Mar 30, 2023 · 2 comments
Assignees
Labels
help wanted Extra attention is needed
Milestone

Comments

@hahn-kev
Copy link
Collaborator

We'd like to setup a an integration and e2e test framework. We've used Playwright in the past and that seems like a good plan to use unless we run into some major downsides.

It does look like we can write tests in .Net or in TS, it's up to us, I'm not really sure what's best here since testing out frontend seems like it might be best in TS. However testing the .Net API would probably be easiest in .Net since we could use some of our dotnet code to inject testing data directly into the db.

For this issue I'd consider it done when we have 2 tests, one to test the login page:

  1. type in user name and password
  2. click login button
  3. verify landing on user dashboard

and an API test:

  1. call the FLEx projects endpoint, this requires an explicit user and password to be passed in.
  2. Verify some results

we also at some point want a test for S&R but that can be tracked in #32 as it's a bigger task to tackle.

@hahn-kev hahn-kev added the help wanted Extra attention is needed label Mar 30, 2023
@hahn-kev hahn-kev modified the milestones: MVP, v1 Mar 30, 2023
@rmunn rmunn self-assigned this Jun 12, 2023
@rmunn
Copy link
Contributor

rmunn commented Jun 12, 2023

Classic site's E2E tests has several Page base classes that, among other things, used a selector after nav to ensure that you really did land on the page that you were trying to navigate to. Copying that approach might serve us well as we get started here.

@myieye myieye mentioned this issue Jun 29, 2023
3 tasks
@hahn-kev
Copy link
Collaborator Author

hahn-kev commented Jul 7, 2023

These are actually now all done with #139 being merged in and the S&R tests that Robin wrote.

@hahn-kev hahn-kev closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants