case-round-trip

Enforce test cases to return to the landing UI and assert the starting state.

176|2|Updated May 21, 2026
One-click install
npx skills add https://github.com/DanielSuo117/velocitai --skill case-round-trip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: case-round-trip
Source: https://github.com/DanielSuo117/velocitai/tree/main/zh/skills/case-round-trip
Command: npx skills add https://github.com/DanielSuo117/velocitai --skill case-round-trip

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In shared-page testing scenarios, test cases that navigate away must return to the landing UI and assert the starting state after navigation to prevent flaky resets.

Core Features & Use Cases

  • Enforces a real UI return to the landing page after leaving the portal layout.
  • Provides a PageObject method like click_back_to_<landing>() to perform the return via the UI.
  • At the end of each test, explicitly asserts that the start page is loaded to guarantee test isolation.

Quick Start

Add a PageObject method to navigate back to the landing state and call it at the end of each test with an assertion that the start page loads.

Frequently Asked Questions about case-round-trip

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

FAQPage Schema
How do I ensure Playwright tests return to the landing page after navigation?

To enforce a return to the landing page in Playwright tests, call a UI-based PageObject navigation method at the end of each test and assert the starting state loads successfully.

Why do my pytest UI tests fail on shared pages after navigating away?

Tests fail because they do not return to the landing UI and assert the starting state after navigation, causing flaky resets. Enforcing a back-to-landing action prevents this issue.

What is the best way to reset UI state between tests that share a PageObject?

The best way to reset shared UI state is to use a simple reset fixture that performs a real UI return to the landing page and explicitly asserts the start page is loaded for test isolation.

Does pytest support asserting the landing page state at the end of every test?

Yes, pytest supports asserting the landing page state by enforcing a back-to-landing action through a PageObject method and validating the start page loads at the end of each test case.

When do I need to assert the starting state after leaving a portal layout in UI testing?

You need to assert the starting state after leaving a portal layout whenever test cases navigate away from a shared page, ensuring a deterministic reset and preventing flaky test behavior.