e2e-test

Plan, write, and validate Detox E2E tests for MetaMask Mobile.

3.0k|1.6k|Updated Jul 18, 2018
One-click install
npx skills add https://github.com/MetaMask/metamask-mobile --skill e2e-test-metamask
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-test
Source: https://github.com/MetaMask/metamask-mobile/tree/main/.agents/skills/e2e-test
Command: npx skills add https://github.com/MetaMask/metamask-mobile --skill e2e-test-metamask

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured workflow for adding and maintaining Detox E2E tests in MetaMask Mobile, reducing guesswork and ensuring consistency across tests.

Core Features & Use Cases

  • Plan and scope Detox E2E tests, including when to use fixtures, Page Objects, selectors, and analytics expectations.
  • Create or reuse Page Objects and selectors and apply proper tagging, mocking, and debugging patterns.
  • Validate with lint and Detox locally, run tests, and iterate until green.

Quick Start

Read this skill first, then follow the decision tree to open the relevant references and start implementing E2E tests.

Frequently Asked Questions about e2e-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Detox E2E tests for MetaMask Mobile?

Structure Detox E2E tests by enforcing Page Object Model discipline, organizing selectors and specs within a clear reference tree, and importing utilities from the tests/framework directory to maintain consistency.

When should I use fixtures in Detox E2E testing?

Use fixtures in Detox E2E testing when planning and scoping tests that require specific application states. This skill enforces withFixtures usage to provide structured, reliable test data and reduce flakiness during execution.

How do I add proper tags and analytics expectations to Detox specs?

Add tags and analytics expectations to Detox specs by applying proper tagging patterns during test creation. This workflow ensures specs are correctly categorized and analytics events are validated within the MetaMask Mobile testing framework.

What is the best way to debug failing Detox E2E tests locally?

The best way to debug failing Detox E2E tests locally is to validate with lint, run Detox locally, and iterate until green. This skill provides mocking and debugging patterns to isolate and resolve test failures systematically.

Do I need to import from tests/framework to write MetaMask Mobile E2E tests?

Yes, you need to import from tests/framework to write MetaMask Mobile E2E tests. This skill enforces importing utilities from the tests/framework directory to maintain Page Object Model discipline and ensure proper test structure.