Skip to content

Commit c5be377

Browse files
committed
Fix README: Update app name and add detailed test structure
- Corrected app name from category-blocking to functions-python - Fixed APP_NAME environment variable - Added Installation section with npm ci command - Enhanced Test Structure section with detailed component descriptions
1 parent 4321a48 commit c5be377

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

e2e/README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Foundry E2E Tests
22

3-
End-to-end tests for the foundry-sample-category-blocking application using Playwright.
3+
End-to-end tests for the foundry-sample-functions-python application using Playwright.
44

55
## Prerequisites
66

@@ -10,7 +10,7 @@ End-to-end tests for the foundry-sample-category-blocking application using Play
1010
FALCON_PASSWORD=your-password
1111
FALCON_AUTH_SECRET=your-totp-secret
1212
FALCON_BASE_URL=https://falcon.us-2.crowdstrike.com
13-
APP_NAME=foundry-sample-category-blocking
13+
APP_NAME=foundry-sample-functions-python
1414
```
1515

1616
2. **App Deployment**: Ensure the app is deployed to your Falcon environment:
@@ -19,6 +19,15 @@ End-to-end tests for the foundry-sample-category-blocking application using Play
1919
foundry apps release
2020
```
2121

22+
## Installation
23+
24+
Install dependencies before running tests:
25+
26+
```bash
27+
npm ci
28+
npx playwright install chromium
29+
```
30+
2231
## Running Tests
2332

2433
### Basic Test Execution
@@ -88,8 +97,17 @@ If login fails:
8897
## Test Structure
8998

9099
- **authenticate.setup.ts**: Handles Falcon login with MFA
91-
- **foundry.spec.ts**: Main test suite with app installation and interaction tests
100+
- **app-install.setup.ts**: Installs app with ServiceNow API configuration
101+
- **foundry.spec.ts**: Main test suite covering:
102+
- Hello extension rendering in detection details
103+
- Workflow execution (3 workflows with full execution)
104+
- Workflow rendering (ServiceNow workflow without execution)
105+
- **app-uninstall.teardown.ts**: Uninstalls app using 3-dot menu pattern
92106
- **Page Objects**: Structured page interactions in `src/pages/`
107+
- **HelloExtensionPage**: Extension verification in detection socket
108+
- **WorkflowsPage**: Workflow execution and verification
109+
- **HostManagementPage**: Host ID lookup for workflow parameters
110+
- **AppCatalogPage**: App installation with ServiceNow configuration
93111
- **Configuration**: Environment-specific settings in `src/config/TestConfig.ts`
94112

95113
## Available Test Commands

0 commit comments

Comments
 (0)