Create List, and Verify in My Results
Prepared by | Test Scenario for |
---|---|
Foivos Polykarpou | Create List, and Verify in My Results |
Overview
Title | Test Name | Objective |
---|---|---|
Create List, and Verify in My Results | streamlist.js | Purpose
|
Prerequisites
Dependencies Installed: Make sure the required npm packages mentioned in Login with valid and wrong credentials are installed
Install minimist for environment variable (baseURL)
2.1. Ensure that Puppeteer is installed and configured for browser automation.
2.2. The
chai
library should be installed for assertions.2.3. The test environment should have access to the web application at the specified URLs.
2.4. Valid login credentials should be available for the test.
npm install puppeteer minimist
Test Steps
4.1. Before Hook
Launch a new browser instance and open a new page.
4.2. After Hook
Close the browser to clean up resources after the test execution.
4.3. Test Case: Login, Create List, and Verify
Navigate to Login Page
Use the
page.goto
method to navigate to the login page.
Perform Login
Wait for the email and password input fields to be visible.
Enter the email and password credentials.
Click the submit button and wait for navigation to complete.
Verify successful login by checking the current URL.
Create New List
Navigate to the prompt page.
Enter a title and prompt text.
Save and submit the prompt.
Create a new list using the provided UI elements.
Verify in My Results
Navigate to the "My Results" page.
Search for the list by title and verify its presence.
4.4. Error Handling
If an error occurs during the process, capture a screenshot and log the page's HTML content for debugging.
Expected Result
5.1. The test should successfully log in, create a new list, and verify its presence in "My Results" without errors.
5.2. Screenshots should be captured for debugging purposes.