/
Accelerate System App Social Media Visit

Accelerate System App Social Media Visit

Prepared by

Test Scenario for

Prepared by

Test Scenario for

Foivos Polykarpou

Accelerate System App Social Media Visit

Overview

Title

Test Name

Objective

Title

Test Name

Objective

Accelerate System App Social Media Visit

accsyssocialmedia.js

Purpose

  • 1.1. This test verifies the functionality of accessing and interacting with the social media section of the Accelerate system app page of a web application.

  • 1.2. It checks for any errors during the page visit and interaction, capturing console logs and 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 the loginfc.js module is correctly set up and exports the page, browser, and baseUrl objects.

  • 2.2. Ensure that the tenantSwitcher.js module is available and correctly implements the switchTenantSystemAdmin function.

  • 2.3. The chai library should be installed for assertions.

  • 2.4. The test environment should have access to the web application at the specified baseUrl.

npm install puppeteer minimist

Test Steps

  • 4.1. Before Hook

    • Capture console logs from the page using captureConsoleLogs.

  • 4.2. After Hook

    • Close the browser to clean up resources after the test execution.

    • Write console logs to a file using writeConsoleLogsToFile.

  • 4.3. Test Case: Visit and Interact with Social Media Section

    • Switch Tenant

      • Use the switchTenantSystemAdmin function to switch to the system admin tenant.

    • Navigate to System App Page

      • Use the page.goto method to navigate to the Accelerate system app country page.

      • Introduce a delay to ensure the page loads completely.

      • Capture a screenshot after opening the page.

      • Verify successful navigation by checking the current URL.

    • Interact with Social Media Section

      • Log elements to verify the page structure.

      • Click the "Social-Media" button from the sidebar.

      • Introduce a delay to allow the page to update.

      • Capture a screenshot of the Social-Media section.

  • 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 navigate to and interact with the social media section of the Accelerate system app page without errors.

  • 5.2. Screenshots should be captured, and console logs should be free of errors.

Related content

Accelerate System App Visit and Interaction
Accelerate System App Visit and Interaction
More like this
Accelerate System App Country Group Visit
Accelerate System App Country Group Visit
More like this
Accelerate System App Corporate Legal Type Visit
Accelerate System App Corporate Legal Type Visit
More like this
Accelerate System App Continent Visit
Accelerate System App Continent Visit
More like this
Accelerate System App Social Media Visit test case
Accelerate System App Social Media Visit test case
More like this
Accelerate System App Timezone Visit
Accelerate System App Timezone Visit
More like this