E2E test scenario 1 - Starting from an empty directory #5750
Labels
area/testing
Issues or PRs related to testing, Quality Assurance or Quality Engineering
kind/user-story
An issue of user-story kind
/kind user-story
User Story
As a quality engineer, I want to create e2e tests that involve using all the features to simulate the developer workflow.
Scenario 1 - Start
odo init
in an empty directory:Connect to cluster
Run
odo init
in interactive mode select javascript/nodejs, then take all default valuesExpect output to include "Your new component 'my-nodejs-app' is ready in the current directory."
run
odo dev
Expect to get the project deployes to the cluster in developer mode, and the application should get running in the cluster, finally it should enter watch mode waiting for changes to files to redeploy automatically.
Make changes to the server.js file and save them.
Verify to get changes pushed to the server, verify that the changes got deployed.
Make additional changes and save again.
Verify that the additional changes got deployed to the cluster.
Exit dev mode
Run
odo deploy
Verify that the component was successfully deployed by running
odo list
Enter dev mode again
Make additional changes.
Exit dev mode
Run
odo deploy
Verify that the additional changes were successfully redeployed.
Undeploy the application form the cluster by running
odo delete component
.Expect the command to ask for confirmation to delete the component.
Verify that the command confirms the deletion.
Verify that the component wad deleted from the cluster.
The text was updated successfully, but these errors were encountered: