index.spec.ts
index.spec.ts - Overview
-
Overview This file contains Playwright tests for the Service Page, verifying its rendering and the logged-in state.
-
Detailed Documentation
Test Suite: Service Page
This test suite groups tests related to the Service Page.
beforeEach hook
- Purpose: Sets up the testing environment before each test case. This includes creating a new browser context with authentication state, navigating to the application page, and assigning the page object.
- Parameters:
baseURL
: The base URL of the application. Provided by Playwright.browser
: The browser instance. Provided by Playwright.
- Returns: None
Test: Serice Page is rendered
- Purpose: Verifies that the Service Page is rendered correctly by checking the URL and taking a screenshot.
- Parameters:
baseURL
: The base URL of the application. Provided by Playwright.
- Returns: None
Test: Logged In must be true
- Purpose: Verifies that the user is logged in by checking the
isLoggedIn
state in the application's Redux store. - Parameters: None
- Returns: None
- Code Examples None
Include in Getting Started: NO