Skip to content

internxt/testing-suite

Repository files navigation

testing-suite

End-to-end test automation for Internxt Drive (web + desktop apps)

This repository contains end-to-end automation tests for Internxt Drive across platforms (Web, Windows, macOS, Linux) using Pytest and Playwright.

📦 Project Setup

  1. Clone the Repository

git clone git@github.com:internxt/testing-suite.git cd testing-suite

🐍 Python (Desktop App Testing) 2. Create and Activate a Virtual Environment python3 -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows

  1. Install Dependencies pip install -r requirements.txt playwright install --with-deps pip install Appium-Python-Client

🌐 JavaScript / TypeScript (Web Testing) 4. Install Node Modules with Yarn yarn install

  1. Install Playwright Browsers yarn playwright install

  2. Set Up Python Virtual Environment (to write desktop app tests)

python3 -m venv venv source venv/bin/activate

  1. To deactivate later (to write web tests)

deactivate

✅ Activate venv when writing or running Python tests. ❌ Deactivate venv (or use another terminal tab) when working on JS tests.

🚀 Running Tests (JS/TS)

✅ Run All Tests

yarn playwright test

👀 Run Test in Debug Mode

yarn playwright test --debug

This will open a Playwright inspector where you can pause, step through code, and resume test execution.

▶️ Run Python Tests

pytest tests/desktop/macos pytest tests/desktop/windows pytest tests/desktop/linux

🍏 macOS Desktop App Automation with Appium Requirements:

  1. Appium installed globally:

npm install -g appium

  1. Appium server must be running:

appium

  1. Xcode must be installed (required by Mac2 driver)

  2. System Permissions: Grant Appium, Terminal, and Xcode access under: System Settings > Privacy & Security > Accessibility

▶️ Run macOS App Test:

  1. Make sure your virtual environment is activated

source venv/bin/activate

  1. Start Appium server In a separate terminal tab, run:

appium

  1. Run your macOS test From the main terminal tab, execute:

pytest tests/desktop/macos/...

🧭 Test Structure Tests are located in the 'tests' folder.

📁 Folder Structure

testing-suite/ ├── tests/ │ └── web/ │ └── login.spec.ts │ └── desktop/ │ └──macos │ └──windows │ └──linux ├── venv ├── package.json └── README.md

About

End-to-end test automation for Internxt Drive (web + desktop apps)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published