Skip to content

In this lab you'll be writing automation tests to search Google and to test the functionality of the Movie List app.

Notifications You must be signed in to change notification settings

JoyUmoekpo/automation-lab-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automation Lab

In this lab you'll be writing automation tests to search Google and to test the functionality of the Movie List app.

Part 1

Your goal in this section is to search for 2 movies and 1 TV show on Google

  • Get started by dowloading the content for this lab from Frodo. Open the folder in VS Code.

  • In the terminal cd into the google folder

  • Run npm i

  • There will be lots of errors with the file google.test.js that you’ll need to fix

  • Follow along with the comments in the test file!

  • In order to run your tests, you’ll type npm run test

Part 2

  • In your terminal, cd into the movieList folder, this page should look familiar!

  • Run npm i

  • You’ll need to make and write your test file from scratch

  • Don’t forget your imports from selenium, the chromedriver, and driver

  • Open the HTML file with liveserver (install it in the extensions tab of VS Code if you don’t have it already)

  • The URL you’ll go to will be the one from Live Server

  • Write a beforeAll that connects to that URL

  • Write an afterAll that quits the driver

  • Write at least 3 tests for the functionality of the Movie List app - these cannot be the same as the functions we covered in the demo. You could test crossing off a movie, deleting a movie, or even the notifications that are displayed.

When you are done, add, commit, and push your code to GitHub.