/
Create List, and Verify in My Results

Create List, and Verify in My Results

Prepared by

Test Scenario for

Prepared by

Test Scenario for

Foivos Polykarpou

Create List, and Verify in My Results

Overview

Title

Test Name

Objective

Title

Test Name

Objective

Create List, and Verify in My Results

streamlist.js

Purpose

  • 1.1. This test verifies the functionality of logging into the application, creating a new list, and verifying its presence in "My Results."

  • 1.2. It checks for any errors during the login, list creation, and verification processes, capturing screenshots for further analysis.

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.

Related content

Submit Prompt, and Verify in My Results
Submit Prompt, and Verify in My Results
More like this
Submit Prompt, Verify in My Results, and Delete it
Submit Prompt, Verify in My Results, and Delete it
More like this
Login and User Management Page Visit
Login and User Management Page Visit
More like this
Create List, and Verify in My Results test case
Create List, and Verify in My Results test case
More like this
Accelerate System App Corporate Legal Type Visit
Accelerate System App Corporate Legal Type Visit
More like this
Login with Enter Button
Login with Enter Button
More like this