-
Plans
Create a working pipeline
Add more tests to pipeline
Write the code to make tests assert a result (dropdownTest.js) \ -
Instructions on how to run the tests
From the command line do the following clone this repo
git clone https://github.com/zm-coder-gamer/e2enodeone.git
- cd to the repo directory; e2enodeone
cd e2enodeone
- install packages
npm install
- run the tests
npm node checkboxTestSelenium.js
This Node.js project focuses on web testing using the Selenium WebDriver for automated browser interactions. The tests are designed to verify the functionality of checkboxes and dropdowns on the the-internet.herokuapp.com website.
-
checkboxTestSelenium.js: This file contains a test script that interacts with checkboxes on the webpage, checks and unchecks them, and asserts the expected states.
-
dropdownTest.js: This file contains a test script that interacts with a dropdown on the webpage, selects a specific option, and performs assertions.
To run the tests locally, follow the instructions below:
Before running the tests, ensure you have Node.js and npm (Node Package Manager) installed on your machine.
-
Open a terminal or command prompt.
-
Navigate to the project directory.
-
Run the following command to install the required dependencies:
npm install selenium-webdriver chromedriver
-
Execute the following commands in the terminal:
node checkboxTestSelenium.js
-
The browser will open, interact with the checkboxes, and close automatically. Review the terminal for any test results or errors.
-
Execute the following commands in the terminal:
node dropdownTest.js
-
The browser will open, interact with the dropdown, and close automatically. Review the terminal for any test results or errors.
- Ensure that you have a stable internet connection, as the tests navigate to the-internet.herokuapp.com to perform the web interactions.