Integrate `edge_to_edge_test_lib`

Community

Prevent inset overlap in Compose tests

Authortimo-drick
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps you avoid flaky or invisible UI layout issues where Compose content overlaps critical WindowInsets like system bars or display cutouts during automated testing.

Core Features & Use Cases

  • Automated inset overlap assertions: Adds overlap checks so tests fail when UI nodes intersect selected WindowInsets types.
  • Supports instrumented and Robolectric tests: Works in both androidTest and test flows to keep verification consistent.
  • Diagnostics for faster triage: Optionally captures overlap diagnostics (e.g., screenshot creation on overlaps) to debug failures quickly.

Quick Start

Integrate edge-to-edge test overlap assertions by adding the edge-to-edge-test dependency in the correct Gradle source set and updating your Compose test to include SemanticsWindowInsetsAnchor() and call assertWindowInsets(...) on the relevant nodes.

Dependency Matrix

Required Modules

de.drick.compose:edge-to-edge-test

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Integrate `edge_to_edge_test_lib`
Download link: https://github.com/timo-drick/compose_edge_to_edge_preview/archive/main.zip#integrate-edge-to-edge-test-lib

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.