unstructured-tests
v1.0.0
Published
This repository contains Ranger’s automated end-to-end tests for Unstructured.
Readme
Unstructured Playwright Test Suite
This repository contains Ranger’s automated end-to-end tests for Unstructured.
Overview
These tests are designed to validate critical user journeys and functionality across Unstructured's web applications. The test suite uses Playwright, a modern end-to-end testing framework that enables reliable cross-browser testing.
Prerequisites
- Node.js version 22 or higher
- npm (usually comes with Node.js)
- Git
Initial Setup
1. Clone the Repository
git clone https://github.com/ranger-testing/unstructured-tests.git
cd unstructured-tests2. Install Dependencies
Install the project dependencies:
npm install3. Install Playwright Browsers
Install the required browser executables:
npx playwright install4. Environment Configuration
- Create a
.envfile in the root directory - Copy the contents from
.env.exampleto.env - Update the values in
.envwith your configuration
Important Notes:
- The
.envfile is excluded from version control (via.gitignore) - When adding new environment variables, always update
.env.example - Never commit sensitive information to the repository
Example .env structure:
BASE_URL=https://your-domain.com/
TEST_USERNAME=your-username
TEST_PASSWORD=your-passwordRunning Tests
Run All Tests
npm run testRun Specific Test File
npm run test tests/path/to/test.spec.tsDebug Tests
To debug a specific test:
- Add
.onlyto the test you want to debug:test.only('your test name', async ({ page }) => { // test code }); - Run with debugging enabled:
npm run test -- --debug
