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 cucumber and selenium test to API Gateway/FrontEnd #15

Open
salaboy opened this issue Feb 4, 2021 · 5 comments
Open

Add cucumber and selenium test to API Gateway/FrontEnd #15

salaboy opened this issue Feb 4, 2021 · 5 comments
Assignees

Comments

@salaboy
Copy link
Owner

salaboy commented Feb 4, 2021

We need a test to validate a simple flow from the user point of view:

  • A proposal is submitted from the main page
  • Go to backoffice
  • A proposal gets accepted in the backoffice screen
  • Go back to main page
  • Check that there is a new agenda item

Cucumber -> https://www.baeldung.com/cucumber-spring-integration
Selenium -> https://www.baeldung.com/java-selenium-with-junit-and-testng

We should create a simple test to validate this flow and run that against an instance of selenium running in a docker container.

@salaboy
Copy link
Owner Author

salaboy commented Feb 4, 2021

To develop this I can create an environment that we can use to test against.

@salaboy
Copy link
Owner Author

salaboy commented Feb 4, 2021

Another more standalone test can be to check that the UI is displaying N/A for the non-available services, but at least it boots up. This will happen when you start the project in your laptop without having the other services up.

@salaboy
Copy link
Owner Author

salaboy commented Feb 4, 2021

@mcruzdev if you can give this a try in a simple test in the API gateway it will be a great start.. a PR to the project with a simple test and adding the dependencies will be a big step forward.

@mcruzdev
Copy link
Collaborator

Sorry, I closed accidentally 😐

@mcruzdev
Copy link
Collaborator

Another more standalone test can be to check that the UI is displaying N/A for the non-available services, but at least it boots up. This will happen when you start the project in your laptop without having the other services up.

@salaboy,

Can I create all tests with wiremock? I know that it is not a real scenario, but we can test standalone?

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

No branches or pull requests

2 participants