Audit Logs Page Visit
Prepared by | Test Scenario for |
---|---|
Foivos Polykarpou | Audit Logs Page Visit |
Overview
Title | Test Name | Objective |
---|---|---|
Audit Logs Page Visit | auditlogs.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 the
loginfc.js
module is correctly set up and exports thepage
,browser
, andbaseUrl
objects.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
baseUrl
.
npm install puppeteer minimist
Test Steps
4.1. After Hook
Close the browser to clean up resources after the test execution.
4.2. Test Case: Visit Audit Logs Page
Navigate to Audit Logs Page
Use the
page.goto
method to navigate to the audit logs page.Capture a screenshot after opening the page.
Verify successful navigation by checking the current URL.
4.3. 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 the audit logs page without errors.
5.2. A screenshot should be captured, and the current URL should confirm successful navigation.