salaboy / from-monolith-to-k8s

Workshop-style guide for creating Cloud-Native applications running on top of Kubernetes

Home Page:http://salaboy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add cucumber and selenium test to API Gateway/FrontEnd

salaboy opened this issue · comments

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.

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

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.

@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.

Sorry, I closed accidentally 😐

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?