Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions generated_tests/atid.store/internal/test_summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated Playwright Tests Summary

## homepage_accessibility_-_initial_entry_point
**Description:**
**Priority**: N/A | **Complexity**: N/A
**Test File:** [homepage_accessibility___initial_entry_point.spec.js](./homepage_accessibility___initial_entry_point.spec.js)
---
22 changes: 22 additions & 0 deletions generated_tests/atid.store/internal/ui_test_report.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"login_scenario": "Skipped",
"workflow_completed": true,
"workflow_result": "PASS",
"workflow_error": "",
"login_agent_activity_summary": "Not available",
"user_scenario_agent_activity_summary": [
"The agent initiated navigation to https://atid.store/ as the first step. For steps 2 through 5, no actions were recorded beyond repeated access to the same URL. The execution flow remained limited to navigation without further interaction or validation against the user scenario."
],
"generated_files": {
"feature_files": [],
"json_files": []
},
"scenarios": {},
"homepage_accessibility___initial_entry_point": {
"testFilePath": "atid.store/playwright_tests/tests/homepage_accessibility___initial_entry_point.noauth.spec.js",
"auth_required": false,
"iterations_used": 1,
"final_status": "pass",
"error_summary": null
}
}
56 changes: 56 additions & 0 deletions generated_tests/atid.store/playwright_tests/.roost/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"metadata_version": "1.0",
"created_at": "2026-01-09T12:32:44.953512",
"last_updated": "2026-01-09T12:35:05.577867",
"urls_to_pom_map": {},
"Login_File": {
"name": null,
"path": null,
"hash": null,
"agent_workflow_completed": false,
"agent_workflow_file_path": null,
"agent_interaction_file_path": null,
"agent_activity_summary": null,
"agent_activity_error": null,
"agent_activity_outcome": null,
"agent_recommendation": null,
"scenario_name": null,
"scenario_file_path": null,
"test_generated": false,
"test_generation_error": null,
"test_file_path": null,
"test_executed_success": false,
"test_execution_error": null,
"urls_to_pom_map": {}
},
"User_Scenarios_File": [
{
"name": "TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx",
"path": "/var/tmp/Roost/RoostGPT/tr-ui-test-check-file-upload/8d5ff1e2-cc4d-4657-9398-1dc918659c3e/TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx",
"hash": "8186a31adef45cb4a5e681a9f723e5bcb2482cb0bf1051f0e429ae3aa3b2bee2",
"agent_workflow_completed": true,
"agent_workflow_file_path": "/var/tmp/Roost/RoostGPT/tr-ui-test-check-file-upload/8d5ff1e2-cc4d-4657-9398-1dc918659c3e/temp_info/atid.store/extracted_data/interaction_data_3d5f40ad7f226863f0906d0eedab18f7bdbd43cf72323e4a54a615a32b76d02a.json",
"agent_activity_summary": [
"The agent initiated navigation to https://atid.store/ as the first step. For steps 2 through 5, no actions were recorded beyond repeated access to the same URL. The execution flow remained limited to navigation without further interaction or validation against the user scenario."
],
"agent_activity_error": [
"No explicit errors were detected during execution; however, the absence of actions in steps 2 through 5 indicates insufficient engagement with the application post-navigation. No recovery actions were attempted since no actionable failures were triggered."
],
"agent_activity_outcome": [
"The execution did not fulfill the Original User Scenario due to lack of defined actions or validation. Only initial navigation occurred, without any test coverage or verification steps."
],
"agent_recommendation": "Review and update the test plan to ensure defined actions align with user scenario objectives. Enhance the automation script to include meaningful validations and user interactions after navigation to provide comprehensive coverage.",
"scenario_analysis_result_file_path": "/var/tmp/Roost/RoostGPT/tr-ui-test-check-file-upload/8d5ff1e2-cc4d-4657-9398-1dc918659c3e/temp_info/atid.store/extracted_data/user_scenario_3d5f40ad7f226863f0906d0eedab18f7bdbd43cf72323e4a54a615a32b76d02a.json",
"scenario_name": "homepage_accessibility_-_initial_entry_point",
"scenario_file_path": "scenarios/homepage_accessibility_-_initial_entry_point.json",
"feature_file_path": "scenarios/features/Discovered_Workflow_Homepage_Accessibility_Initial.feature",
"test_generated": true,
"test_generation_error": null,
"test_name": "homepage_accessibility___initial_entry_point_pom.noauth.spec.js",
"test_file_path": "tests/homepage_accessibility___initial_entry_point_pom.noauth.spec.js",
"test_execution_error": null,
"test_executed_success": true,
"urls_to_pom_map": {}
}
]
}
77 changes: 77 additions & 0 deletions generated_tests/atid.store/playwright_tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Playwright Test Suite

## RoostGpt Generated playwright test

This project contains Playwright-based automated tests located in the `playwright_tests` directory.

## 📁 Directory Structure

```bash
playwright_tests/
├── README.md
├── scenarios/
├── scenarios_summary.md
├── *.json (scenario files)
├── features/
│ ├── *.feature (feature files)
├── tests/
├── package.json
├── playwright.config.js
├── .env.template
├── *.spec.js (test files)
├── test_summary.md
```

## 🧩 Prerequisites

Make sure you have the following installed:

- [Node.js](https://nodejs.org/) (version 18 or higher recommended)
- npm (comes with Node.js)

## 📦 Setup

1. Navigate to the Playwright tests directory:

2. Install dependencies:

```bash
cd tests
cp .env.template .env
npm install
```

3. Edit the `.env` file to set any required environment variables.
## 🚀 Running Tests

To execute all Playwright tests:

```bash
npx playwright test
```

You can also run a specific test file:

```bash
npx playwright test example.spec.js
```

> Replace `example.spec.js` with the actual test file you want to run.

## 📂 Test Reports

After the tests run, Playwright will generate a report. To view the report:

```bash
npx playwright show-report
```

## ⚙️ Configuration

Test configuration is defined in `playwright.config.js`.

You can modify settings like test directory, timeout etc., in this file.

## 📘 More Info

For detailed Playwright documentation, visit: [https://playwright.dev](https://playwright.dev)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Feature: Homepage Accessibility and Initial Navigation
The homepage is the primary entry point for all visitors. Ensuring users can reliably access and view the main store page is critical for enabling further browsing and purchasing workflows. This feature verifies that the homepage at https://atid.store/ loads correctly from various entry points, displays expected content, and responds appropriately under different conditions.

@critical @e2e @homepage
Scenario: Access homepage via direct navigation
Given I am on the homepage "https://atid.store/"
Then the URL should be "https://atid.store/"
And the page title should be "ATID Store"
And the "Store" navigation link should be visible in the site header
And the main banner section with class "hero-banner" should be visible
And the featured products section with heading "Featured Products" should be present
And the site should respond within 3 seconds
And no error alert or site maintenance notice should be displayed

@edge @multiple_tabs @e2e
Scenario: Access homepage in multiple browser tabs
Given I am on the homepage "https://atid.store/"
And I open a new browser tab
When I navigate to "https://atid.store/" in the new tab
Then the URL in the new tab should be "https://atid.store/"
And the page title in the new tab should be "ATID Store"
And the main banner section with class "hero-banner" should be visible in the new tab

@edge @navigation @e2e
Scenario: Return to homepage after navigating away
Given I am on the homepage "https://atid.store/"
When I click the "Store" navigation link in the site header
Then I should be on the products listing page with URL containing "/products"
When I click on the "ATID Store" logo in the site header
Then I should be on the homepage "https://atid.store/"
And the page title should be "ATID Store"

@edge @network @performance @homepage
Scenario: Homepage accessibility with slow internet connection
Given the network speed is throttled to "Fast 3G"
When I navigate to "https://atid.store/"
Then the homepage should finish loading within 10 seconds
And the main banner section with class "hero-banner" should be visible
And no error alert or site maintenance notice should be displayed

@edge @crossbrowser @homepage
Scenario Outline: Homepage loads correctly across supported browsers
Given I launch the "<browser>" browser
When I navigate to "https://atid.store/"
Then the URL should be "https://atid.store/"
And the page title should be "ATID Store"
And the main banner section with class "hero-banner" should be visible

Examples:
| browser |
| Chrome |
| Firefox |
| Safari |
| Edge |
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"site_url": "https://atid.store/",
"site_type": "unknown",
"site_category": "general",
"test_name": "homepage_accessibility_-_initial_entry_point",
"login_mechanisms": [
"content_browsing",
"site_navigation"
],
"user_journeys": [
{
"workflow_type": "navigation_flow",
"path": [],
"success_rate": "discovered_site_navigation",
"scenario_priority": "medium",
"description": "General website navigation and content discovery"
}
],
"proposed_scenarios": [
{
"scenario_name": "Discovered Workflow: Homepage Accessibility - Initial Entry Point",
"description": "Basic test to confirm that users can successfully access the homepage of the website and initiate browsing. This is the foundational e2e workflow identified in the captured exploration data.",
"test_type": "e2e_business_workflow",
"priority": "critical",
"business_goal": "Verify users can reach the store's homepage as a prerequisite for all browsing and purchasing activities.",
"user_story": "As a prospective shopper, I want to navigate to the homepage so that I can start browsing products and make purchases.",
"detailed_steps": [
{
"step_number": 1,
"action": "Navigate to website homepage",
"component": "Global Navigation",
"description": "Load the main website homepage and verify page is reachable at the root URL.",
"expected_page_url": "https://atid.store/",
"verification_point": "Page URL is https://atid.store/",
"business_impact": "First impression and site accessibility; all other workflows depend on this entry point.",
"selector": "page.goto('https://atid.store/')",
"confidence": 100,
"based_on_interaction": true
}
],
"expected_results": [
"User successfully loads the homepage without errors",
"Site responds within acceptable time limits",
"Homepage is the correct expected URL"
],
"edge_cases_to_test": [
"What happens with slow or unstable internet connection",
"How does the homepage load if user navigates away and returns",
"How does the system handle homepage loads from multiple tabs or browser types"
],
"data_requirements": [
"N/A (Homepage access requires no test data)",
"Various browser and device combinations",
"Stable internet connection for baseline testing"
],
"prerequisites": [
"Website (https://atid.store/) is accessible and functional from the test environment",
"No maintenance or downtime during the test",
"All dependent services (e.g., DNS, CDN) are operational"
],
"auth_required": false,
"starting_url": null
}
],
"login_completion_state": "successful",
"analysis_timestamp": "2026-01-09T12:34:09.182960",
"confidence_score": 0.5,
"captured_selectors": [],
"auth_required": false,
"starting_url": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated Test Scenarios Summary

## Overview

- **Total Scenarios**: 1
- **Application Base URL**: https://atid.store/
- **Generated On**: 2026-01-09 12:34:17

## Scenarios

### 1. Discovered Workflow: Homepage Accessibility - Initial Entry Point
_Basic test to confirm that users can successfully access the homepage of the website and initiate browsing. This is the foundational e2e workflow identified in the captured exploration data._

**Complexity**: Low | **Priority**: High | **Risk Level**: Low
**Tags**: navigation, homepage, e2e, accessibility, site-entry
**Est. Execution Time**: 5 seconds | **Flakiness Potential**: Low

**Type**: End-to-End Business Workflow
**Pages Involved:**
- https://atid.store/

#### Steps:
- Navigate to website homepage
- Load the main website homepage and verify that the page is reachable at the root URL

#### Expected Results:
- User successfully loads the homepage without errors
- Site responds within acceptable time limits
- Homepage is the correct expected URL

---
16 changes: 16 additions & 0 deletions generated_tests/atid.store/playwright_tests/tests/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Environment Configuration Template
# This file contains safe placeholder values for version control
# Actual credentials will be injected at runtime from your source env file

# Application Configuration
BASE_HOST_URL=https://atid.store
BASE_URL=https://atid.store
CI=
COOKIE_GRACE_PERIOD_MINUTES=
UI_OTP_ALGORITHM=
UI_OTP_DIGITS=
UI_OTP_PERIOD=

# Authentication & Credentials (POPULATED AT RUNTIME)
# These values are automatically loaded during test execution
# DO NOT enter real credentials here
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import 'dotenv/config';
import { test, expect } from '@playwright/test';
import * as path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const BASE_URL = process.env.BASE_URL;
const BASE_HOST_URL = process.env.BASE_HOST_URL;

// Capture accessibility tree and screenshot on failure

test.setTimeout(120000);

test('Homepage Accessibility - Initial Entry Point', async ({ page }) => {
// Step 1: Navigate to website homepage
// Use BASE_URL for initial navigation, fallback to BASE_HOST_URL if not set
await page.goto(BASE_URL || BASE_HOST_URL);
await page.waitForLoadState('networkidle');

// Verify page is reachable at the root URL
// Accept both with and without trailing slash
const expectedHomeUrl = (BASE_URL || BASE_HOST_URL).endsWith('/') ? (BASE_URL || BASE_HOST_URL) : (BASE_URL || BASE_HOST_URL) + '/';
await expect(page).toHaveURL(new RegExp(`^${expectedHomeUrl.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$`));
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import 'dotenv/config';
import { test, expect } from '@playwright/test';
import { HomePage } from './pom/HomePage.js';
const BASE_HOST_URL = process.env.BASE_HOST_URL || 'https://atid.store';

test('homepage_accessibility___initial_entry_point', async ({ page }) => {
// Instantiate the HomePage page object
const homePage = new HomePage(page);

// Step 1: Navigate to website homepage using POM method
await homePage.gotoHomePage();

// Step 2: Wait for network to be idle for full page load
await homePage.waitForPageLoad();

// Step 3: Verification - Page URL is correct and homepage is accessible
const currentUrl = await homePage.getCurrentUrl();
expect(currentUrl).toBe(`${BASE_HOST_URL}/`);
});
Loading