Review and authoring guidance for new/changed tests in the Fenix TAE efficiency framework (mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/efficiency). Use when reviewing a diff, PR, or Phabricator revision that adds or modifies files under that path — page objects, selectors, navigation edges, or test files. Also use when authoring a new test and self-checking before submission, when asked to check a test against TAE conventions, classify a test (presence/interaction/behavior), or judge whether a helper belongs in a page object vs. BasePage. Also use when auditing a converted test for assertion parity against the legacy test it replaces. Applies the framework's principles and anti-patterns as a review rubric with severity tiers.
75
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
This one document serves two audiences:
Both audiences share the same rules; the only difference is who applies them and when.
This section is for the reviewer (and for the author doing a pre-submission self-check). The rest of the document defines what "good" looks like; this defines how to apply it to a diff.
Identify what the diff touches, because different files get different scrutiny:
tests/*.kt) — apply test-type classification, three-phase
structure, and the one-assertion rule (with the Behavior exception below).pageObjects/*.kt) — check page-boundary discipline,
whether new methods earn a [STEP], and that navigation edges are registered
in init {}.selectors/*Selectors.kt) — check anchor stability, group
assignment, and that nothing is defined inline in a test.SelectorStrategy has a
specific two-path wiring trap — see anti-patterns.devtools/*.kt — anything with an @Test in this package runs on
Firebase, because the TAE flank config targets the whole package. Every
dev-only method needs assumeFalse("dev tool, not a CI test", isTestLab()).Label each finding so the author knows what blocks merge.
Blocking — merge only after this is fixed:
Thread.sleep() or a hand-rolled poll/wait loop.BasePage without a demonstrated missing category.@After used for state that must be clean for the next test to be valid.navigateToPage()
edge.SelectorStrategy added to only one of the two resolution paths
(resolveComposeNode()'s candidates() and mozGetElement()'s when). It
compiles and fails at runtime for whichever verb you didn't wire.@Test under devtools/ without an isTestLab() guard — it will consume a
Firebase device slot on every TAE run.Should-fix — fix unless there's a stated reason:
mozVerifyElementsByGroup used for runtime/dynamic data.primitive + selector.shouldUseExpandedToolbar = true but only
verified in the default layout. That flag relocates controls and changes the
handles they expose.to = "<TargetPage>" across pageObjects/
first. Edges are sometimes registered twice, and the loser is invisible.Nit — note it, don't block:
Most tests under review right now are 1:1 conversions of legacy smoke tests. They are temporary — they exist until the factories generate the suite in CI — so the goal is to get correct coverage landed with minimal round-trips, not to make every conversion structurally perfect. The expensive thing is the feedback loop, not the feedback. Recalibrate accordingly.
Correctness is not a compromise variable. Everything below relaxes structure, placement, and primitive design. None of it relaxes whether the test actually verifies its stated behavior. A green test that doesn't test the thing is negative value during a migration: it reads as coverage while hiding a gap, and if these hand-conversions seed factory templates, the wrong assertion propagates. So correctness findings stay land-blocking no matter how the gate below scores them.
For a conversion, "correctness" means assertion parity with the legacy test, established by the diff in "Parity audit" — not by the test passing. A review of one 13-conversion stack found 17 legacy assertions silently missing, and none of them caused a failure.
Cost-of-fix gate. For every non-correctness finding, before requesting the change, ask:
If all five are "no", it's a fix-now item — trivial, has precedent, no guts — and the author should just make it. If any is "yes", it's a defer item.
Three buckets (use these instead of raw blocking/should-fix/nit for conversion patches):
on.mainMenu -> on.downloads), single-navigation
assertion blocks, missing all-list registration, missing TestRail link.Navigation and page-boundary findings are relax-by-default. Do not block a conversion solely because it chains across pages or over-navigates — unless the fix is trivial-with-precedent (then it's fix-now). A test written awkwardly because the harness lacks a clean step is a signal of a missing feature, not an author error; record it as a gap rather than forcing the author to build the primitive.
Guardrails so "relaxed" doesn't become invisible debt:
A dropped assertion does not fail — it passes for the wrong reason. This is the single highest-yield check in a conversion review, and the only one that a green CI run actively disguises.
navigateToPage() silently verifies every selector in the target page's
requiredForPage group. That makes a legacy verifyPageContent(...) or
verifyUrl(...) look redundant, so it gets dropped. What survives is the
navigation assertion; what disappears is the payload assertion. The test
still proves it reached a screen. It stops proving the screen is right.
The audit:
verify* calls in the test and in the
robot helper it delegates to.When the legacy test gets annotated (after the port is green and landed), that annotation is where a documented gap belongs permanently:
@Converted(
replacedBy = ["org.mozilla.fenix.ui.efficiency.tests.AutofillTest#verifyAddressAutofillTest"],
bug = 2057958,
since = "2026-07",
notes = "Legacy also asserted X; not carried over — see bug NNNNN.",
)In review, check that replacedBy points at a real non-@Ignored @Test (the
conversion lint check validates this) and that any parity gap you found in step 4
is recorded in notes rather than left in a review comment.
Do not accept "navigateToPage already checks it" as a justification. An
implicit assertion is invisible to the next person diffing the port against the
legacy test, which makes the conversion impossible to audit. A faithful port now
with duplicated-looking lines beats a tidy port that quietly lost coverage; house
style gets settled in a later dedicated refactor pass.
Two related traps:
COMPOSE_BY_TAG_AND_TEXT. Otherwise the assertion degrades to "an
element with this tag exists", which is nearly always true, and the parameters
carrying the expected values become dead — passed by every caller, read by
nothing.[STEP], and does it stay
on the page it operates on?Build.VERSION branch whose modern arm
asserts less than its legacy arm did. If a queryable state exists behind the
UI — checkSelfPermission, a store field, a pref — assert that instead
(A58).PageContext in the same change
(A59). Edges register in the page's init, which never runs otherwise, so an
unreferenced page object is dead code whose navigation has never executed —
and its arrival anchor may not even match the screen its edge lands on.The "one test, one assertion" rule applies fully to Presence and Interaction tests. Behavior tests legitimately span surfaces and may contain sequential checkpoints — a verify after each state transition that a later step depends on.
Distinguish a legitimate checkpoint from two tests glued together:
If in doubt, ask: "does the second assertion require the first action to have happened?" Yes → checkpoint, allowed. No → split, blocking.
Rejected — inline selector, UI setup, and two unrelated assertions glued together across navigation:
@Test
fun bookmarksTest() {
// UI setup that a constructor flag / pre-seed could do
on.browserPage.navigateToPage(url)
on.browserPage.openMainMenu().mozClick(MainMenuSelectors.BOOKMARK_THIS)
on.bookmarks.navigateToPage()
.mozVerify(Selector(COMPOSE_BY_TEXT, "My Page", groups = listOf())) // inline selector
.mozClick(BookmarksSelectors.THREE_DOT_MENU) // crosses into an action
on.bookmarks.mozVerify(BookmarksSelectors.EDIT_BUTTON) // assertion #1: menu opens
on.home.navigateToPage() // unrelated surface
.mozVerifyElementsByGroup("jumpBackIn") // assertion #2: independent
}Review comments:
BookmarksSelectors with a group.createBookmarkItem(...) so this test starts on the surface it's verifying.Accepted — one Presence test, setup pre-seeded, single assertion. Note the
assertion uses mozVerify with a parameterized selector (BOOKMARK_ITEM(title))
rather than a group, because title is runtime data — this is correct, not a
missing group:
@Test
fun bookmarksListShowsSavedItem() {
// SETUP
createBookmarkItem(url, title, null)
// STEPS
on.bookmarks.navigateToPage()
// ASSERT
on.bookmarks.mozVerify(BookmarksSelectors.BOOKMARK_ITEM(title))
}A test should read as a specification of behavior. Navigation mechanics, element resolution, retries, and waits belong in the framework. If someone reads your test and can't tell what feature it validates within 10 seconds, rewrite it.
For Presence and Interaction tests: if you have assertion blocks
separated by navigation or interaction steps, you have written multiple tests
glued together. Split them. Use mozVerifyElementsByGroup to assert multiple
related elements as one logical check when they belong to the same verification.
For Behavior tests: because they intentionally cross surfaces, a verify may appear after each state transition as a sequential checkpoint — but only when that verified state is a precondition for the next step and removing it would make a later failure impossible to localize. Independent assertion blocks that don't depend on each other's state are still two tests; split them.
The distinguishing question: does the next action require the previous assertion's state to have happened? Yes → legitimate checkpoint. No → split.
(See "Conducting a review > The Behavior-test exception" for how this is applied in review.)
Every test follows this pattern:
// SETUP: what preconditions does this test need?
// Prefer BaseTest constructor flags, pre-seeded data, or pre-runner state.
// Reserve in-test setup for state that genuinely requires UI interaction.
createBookmarkItem(url, title, null)
// STEPS: navigation and page object interactions to reach the point of interest.
on.bookmarks.navigateToPage()
.openItemMenu(title)
.mozClick(BookmarksSelectors.SHARE_BUTTON)
// ASSERT: a single assertion block capturing the spirit of the test.
// This is WHY the test exists and WHAT artifact is being verified.
on.shareOverlay.mozVerifyElementsByGroup("shareTabLayout")Push setup as early as possible. If state can be configured via feature flags in the BaseTest constructor, do that. If it can be set before the runner initializes (intent extras, shared prefs), do that.
Before writing a test, identify which type it is. Each has a repeatable model:
Presence - Navigate to a surface, verify elements render. No state changes. Answers: "Does this page show what it should?"
on.home.navigateToPage()
.mozVerifyElementsByGroup("requiredForPage")Interaction - Navigate + perform an action + verify the immediate result. Modifies state on one surface. Answers: "Does this control do what it should?"
on.home.navigateToPage()
.mozClick(HomeSelectors.PRIVATE_BROWSING_BUTTON)
on.home.mozVerifyElementsByGroup("privateBrowsing")Behavior - One or more state changes across one or more pages. Answers: "Does this feature work end-to-end?" These compose presence and interaction primitives.
on.browserPage.navigateToPage(url)
on.home.navigateToPage()
.mozVerifyElementsByGroup("jumpBackIn")If you can't classify your test, you don't yet have a clear enough picture of what you're testing.
Before adding a function, ask: "Would another test for a different feature need this?" If yes, it belongs in a page object or shared step. If no, reconsider whether you need a new function at all.
If you add a method to a page object, it should be useful to any test touching that page. If only your test calls it, it doesn't belong there.
A page object method should only interact with the UI surface it represents. If a method on BrowserPage clicks through MainMenu and Collections selectors, it's crossing page boundaries -- put it on the page where the action starts, or split it across the relevant page objects. Similarly, don't chain primitives on one page object while interacting with another page's UI just because the return type allows it.
Define selectors once in the appropriate selectors/*Selectors.kt file. Assign meaningful groups. Don't create one-off selectors inline in tests.
mozClick, mozSwipeTo, mozVerify, mozVerifyElementsByGroup, mozEnterText, mozPressEnter -- these are your building blocks. Compose tests from them.
Verified against
helpers/BasePage.kton 2026-07-29. This is a point-in-time snapshot — new primitives are added over time, so treat the current BasePage source as authoritative if it differs.mozVerifyElement,mozGetElement, andresolveare private to BasePage; don't reach for them from tests or page objects.
| Primitive | Purpose |
|---|---|
mozClick(selector) | Click an element |
mozLongClick(selector) | Long-click an element |
mozClickIfPresent(selector) | Click only if the element is present (no failure if absent) |
mozClickFirstWithParentText(selector, parentText) | Click the first match under a parent with given text |
mozEnterText(text, selector) | Enter text into a field |
mozClear(selector) | Clear a field |
mozClearAndEnterText(text, selector) | Clear then enter text |
mozPressEnter(selector) | Press the IME enter key on the field |
mozSwipeTo(selector) | Swipe until an element is visible |
mozSwipeElement(selector, direction) | Swipe a specific element in a direction |
mozPressBackUntilGone(selector) | Press back repeatedly until an element is gone |
mozOpenNotificationsTray() | Open the system notifications tray |
navigateToPage() | Navigate via the navigation graph |
| Primitive | Purpose |
|---|---|
mozVerify(selector) | Verify a single element is displayed |
mozVerifyElementsByGroup(group) | Verify all selectors in a group (compile-time selectors only) |
mozVerifyElementAbsent(selector) | Verify an element is not displayed |
mozWaitUntilAbsent(selector) | Wait until an element is no longer present |
mozVerifyAnyContainsText(selector, text) | Verify any match contains the given text |
mozVerifyAnyHasChildWithText(selector, text) | Verify any match has a child with the given text |
mozVerifyNoneContainText(selector, text) | Verify no match contains the given text |
mozVerifyElementIsSelected / mozVerifyElementNotSelected | Verify selected state |
mozVerifyElementIsChecked / mozVerifyElementIsNotChecked | Verify checked state |
mozVerifyElementIsEnabled / mozVerifyElementIsNotEnabled | Verify enabled state |
mozVerifyElementHasCheckedSiblingByResName | Verify a sibling (by res name) is checked |
mozVerifyElementHasSiblingWithText | Verify a sibling has given text |
mozVerifyKeyboardVisible() / mozIsKeyboardVisible() | Verify / query soft-keyboard visibility |
mozVerifyFileOpensInExternalApp(...) | Verify a file hands off to an external app |
verifySnackbarText(text) | Verify a snackbar shows the given text |
waitForSnackbarToBeDismissed() | Wait for the snackbar to dismiss |
dismissKnownOverlaysIfPresent() is public but you should almost never call it —
mozClick and mozVerify already fire it automatically on a locate miss and
retry once. Register new blocking overlays in helpers/OverlayRegistry.kt instead
of dismissing them from a test.
BrowserPage.verifyPageContentWithReload(url, text, attempts) is a page-object
method, not a BasePage primitive. Reach for it when content only appears after
async work (blocked-tracker reports, for example) — a longer wait on the current
document never helps, because the page has to be re-fetched.
The state-verification family (...IsSelected, ...IsChecked, ...IsEnabled,
sibling checks) is easy to overlook — reach for these before writing a custom
check when asserting toggle/checkbox/selection state. Their exact parameter
lists vary; check the current helpers/BasePage.kt signatures before use.
Don't add new primitives to BasePage.kt unless you've identified a genuinely missing category of interaction that multiple pages need. The bar for adding to BasePage is high.
No clickAndWaitForBookmarks() -- that's mozClick + navigateToPage. No interactAndWait() -- that's a primitive trying to be a framework. These belong in BasePage if anywhere.
If you're tempted to write a new wait/polling mechanism, you probably need a better selector (one that keys off the right element state) rather than new timing logic.
Page object methods are test steps. The structured log hierarchy is [STEP] > [CMD] > [LOC] > [SEL], and test steps should read like steps in a TestRail test case. The question isn't "how many primitives does it wrap?" but "does wrapping improve logging and root cause analysis?"
Wrap when:
openMainMenu, openItemMenu, saveEditBookmark)[STEP]-level failure in the log would immediately tell you what user action broke -- without reading the underlying [CMD]s -- with close to zero processing effortDon't wrap when:
verifyBookmarkTitle(title) vs mozVerify(BookmarksSelectors.BOOKMARK_ITEM(title)) -- these read identically)This matters because the structured logging is designed as a bidirectional bridge to TestRail: well-named test steps, commands, locators, and selectors mean TestRail cases can generate tests via factories, and test logging can maintain TestRail cases. AI can also generate test scaffolding from selectors, navigation nodes, and page object test steps. This flow only works when each layer is meaningful and reads like a test case.
Selectors should represent stable, semantic anchors: test tags, resource IDs, accessibility labels. Avoid selectors tied to layout position, localized text, or internal implementation details.
"requiredForPage" -- elements that prove the page loaded"jumpBackIn", "topSitesCompose" -- elements that constitute a feature area"homeScreen" -- elements belonging to a broader surfaceGroups turn element lists into meaningful assertions.
mozVerify calls for dynamic datamozVerifyElementsByGroup works with selectors defined at compile time in the selectors file. When values come from test data at runtime (e.g., verifying that specific page titles appear in a collection), use individual mozVerify calls with parameterized selectors. Multiple mozVerify calls in the same assertion block on the same page is fine -- it's not the same anti-pattern as splitting assertions across navigation.
The 25 strategies in SelectorStrategy (helpers/Selector.kt) cover Compose,
Espresso, and UIAutomator. If none works, the UI itself may need a test hook (a
test tag or content description) rather than a more complex selector.
Ones that are easy to miss because they solve a narrow problem:
| Strategy | Reach for it when |
|---|---|
COMPOSE_BY_TAG_AND_TEXT | A tag disambiguates and the text is the thing being asserted. This is the fix for a tag swap that would otherwise drop a content assertion. |
UIAUTOMATOR_WITH_COMPOSE_TAG | Matching a web/GeckoView DOM id. It matches the raw resourceId with no package prefix, which is what web content exposes. |
UIAUTOMATOR_WITH_WEB_ID_AND_TEXT | Raw web DOM id plus exact text — e.g. asserting an autofilled value in a form field. |
UIAUTOMATOR_WITH_RES_ID_CONTAINING_TEXT | Package-prefixed app res-id plus a text substring (mirrors legacy itemWithResIdContainingText). |
UIAUTOMATOR_WITH_DESCRIPTION_CONTAINS | A control that moves between surfaces — see below. |
Note the app/web split: an app View res-id wants UIAUTOMATOR_WITH_RES_ID
(which prepends packageName:id/), while a web DOM id (submit, username)
needs a raw-resourceId strategy. Using the app one on web content silently
matches nothing.
shouldUseExpandedToolbar = true is not a restyle — it moves controls between
surfaces and changes which handles they expose. Confirmed cases: the tab counter
moves into the bottom navigation bar and exposes no testTag at all, only a
content description; "Bookmark page" moves out of the main menu, so a Compose
content-description lookup scoped to the menu finds nothing; the search
placeholder becomes a text node with no content description.
So a testTag cannot be "the stable handle" for a control whose tag doesn't exist
in the other layout. Prefer a device-level
UIAUTOMATOR_WITH_DESCRIPTION_CONTAINS, which resolves in both — see
ToolbarSelectors.TAB_COUNTER_ANY_LAYOUT. In review: any selector used by a class
that sets the flag must have been verified in that layout.
All navigation goes through navigateToPage(). Hard-coded click sequences to reach a page mean the registry is missing an edge -- add the edge, don't work around it.
This keeps the graph definition co-located with the page that owns the relationship:
class HomePage(...) : BasePage(composeRule) {
override val pageName = "HomePage"
init {
NavigationRegistry.register(
from = "AppEntry",
to = pageName,
steps = listOf(),
)
NavigationRegistry.register(
from = pageName,
to = "MainMenuPage",
steps = listOf(NavigationStep.Click(HomeSelectors.MAIN_MENU_BUTTON)),
)
}
}Getting to the page is infrastructure. Your test starts once you're on the page. If navigation dominates your test body, your test is too far from its subject.
These should be flagged in code review:
| Anti-pattern | Why it's wrong | What to do instead |
|---|---|---|
| Assertions interleaved with navigation | Multiple tests combined into one | Split into separate tests |
| New methods on BasePage | Framework bloat | Use existing primitives |
| Inline selectors in test files | Not reusable | Add to selectors file with groups |
Thread.sleep() or custom polling | Brittle, flaky | Use requiredForPage or existing waits |
| Wrappers that don't add log clarity | Name doesn't aid root cause analysis | Use the primitive + selector directly |
| UI setup when config is available | Slower, flakier | Use constructor flags or pre-seeded data |
| Journey tests without foundational coverage | Premature | Write presence/interaction tests first |
| Framework-level abstractions in page objects | Belongs in BasePage if anywhere | Keep page object methods as test steps, not new primitives |
| Page object methods crossing page boundaries | Breaks page object model | Put methods on the page they operate on, or use separate on.<page> calls |
Using mozVerifyElementsByGroup for dynamic data | Groups are compile-time; dynamic values won't match | Use individual mozVerify calls with parameterized selectors |
Using @After for critical state cleanup | If the runner crashes, @After is not called -- leaves dirty state that can break subsequent tests or worse, cause false passes from carried-over state | Push cleanup to pre-test setup, constructor flags, or runner-level mechanisms that run regardless of crash |
| Handling unexpected popups in test assertions | System alerts, permission dialogs, and conditional modals break tests that aren't meant to verify them | Let custom commands handle view-blocking elements via fallback conditional checks -- this keeps the fix in one place (the primitive) rather than scattered across tests |
Dropping a legacy assertion as "covered by navigateToPage" | The navigation check survives, the payload check disappears; the port passes while testing less | Restore it explicitly, or document the gap in the test and the commit message (see "Parity audit") |
| Swapping text matching for a tag without asking what the text asserted | Degrades the check to "an element with this tag exists" and leaves dead parameters behind | Use COMPOSE_BY_TAG_AND_TEXT when the text was the assertion |
| Step-by-step narration comments in a converted test | Restates the code and buries the parity notes that actually carry information | Keep the conversion header, TestRail link, and parity/why notes; cut the narration |
A new SelectorStrategy wired into one resolution path | mozClick and mozVerify resolve differently; compiles clean, fails at runtime for the unwired verb | Wire both resolveComposeNode()'s candidates() and mozGetElement()'s when |
An @Test under devtools/ with no isTestLab() guard | The flank config targets the whole package, so it burns a Firebase slot every run | assumeFalse("dev tool, not a CI test", isTestLab()) — not @Ignore, which also blocks manual runs |
| A testTag as the handle for a control that relocates | The tag may not exist in the expanded-toolbar layout | Device-level UIAUTOMATOR_WITH_DESCRIPTION_CONTAINS |
Tests that aren't specifically verifying a popup, alert, or modal should not fail because one appeared unexpectedly. The framework's custom commands are designed to handle this: locators inside primitives can include fallback checks for view-blocking elements (system alerts, client popups, app modals) in priority order.
Don't add popup handling logic to individual tests. If a system dialog or conditional modal is blocking your test:
isPageLoadTranslationsPromptEnabled = false in the BaseTest constructor)The goal is stability first, speed second. Adding conditional checks for view-blocking elements in custom commands is acceptable overhead -- it's cheaper than flaky tests.
The repo-wide "almost never comment" rule still applies to narration, but a converted test has two comment categories that are explicitly welcome, because they carry context a future reader diffing against the legacy test would otherwise lose:
Keep the // Converted from legacy <Class>.<method> header and the TestRail link.
Cut comments that restate the code (// Load a page, open the main menu, tap Bookmarks above code doing exactly that), and don't duplicate a long parity
explanation that already lives in the commit message — condense it.
Attribute a harness gap to the gap ("no stateful BookmarksPage -> BrowserPage edge yet"), not to a selector or locator problem.
Reviewers and authors both waste cycles here, so it's worth stating the order.
"Not found" can mean "covered", not "absent". On a locate failure the harness
dumps all layers — Compose, UIAutomator, Espresso — plus a [windows] summary
with window titles/types, IME and overlay flags, and the currently focused input.
Read [windows] first. A non-APPLICATION window on top means an overlay,
popup, or keyboard covered the target; a focused input somewhere unexpected means
focus was stolen. Neither is a selector bug. Known blocking overlays (the Android
stylus-handwriting prompt, for one) are auto-dismissed via OverlayRegistry; add
new ones there. Web-form tests should also disable the prompt deterministically
with settings put secure stylus_handwriting_enabled 0 before focusing a field.
Group verification names only the first missing element.
mozVerifyElementsByGroup is an all {}, so it short-circuits. Expect to iterate
once per missing member, or read the dump and check the whole group in one pass.
A retry-pass is not a pass. clean = false means it failed once and passed on
retry. During conversions that's most often an overlay rather than a product bug —
check [windows] before rewriting anything.
If a fix changes nothing, suspect a second definition before your diagnosis.
Two separate cases produced byte-identical failures after a real fix: a duplicate
NavigationRegistry edge registered in another file, and a strategy added to one
resolution path but not the other.
Gradle's JUnit XML is authoritative for pass/fail
(androidTest-results/connected/debug/TEST-*.xml); the logcat trace explains why.
The Test Orchestrator runs each test in its own process, so one
run finished: 1 tests per test plus a suite summary is normal, not a stale
buffer.
[STEP] in the log? Would a failure at that level immediately tell you what broke?verify* in the legacy test and
its robot helper, and does each one have an explicit counterpart here or a
documented gap?selectors/NewPageSelectors.kt with groups (at minimum "requiredForPage")pageObjects/NewPage.kt extending BasePageinit {}mozGetSelectorsByGroup()helpers/PageContext.kt for use in testsTwo constraints that only bite later:
PageContext and
generates a "can I reach this page?" case for each. steps = listOf() on the
only edge produces a case that always fails. If the page only exists under a
special launch (onboarding, for example), declare a LaunchConfig on its
AppEntry edge instead.requiredForPage must be state-invariant. Pick something present in every
state — a toolbar title, never an empty-list placeholder. And if the entry
control is state-dependent (the trust-panel button's tag varies with page
security), the edge must ClickIfPresent every variant. Static checks can't see
either of these; verify by hand whenever you build or modify navigation.This skill is the review rubric. The full authoring reference is in-tree and is the source of truth — read it there rather than trusting a copy:
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/efficiency/docs/
| Need | Read |
|---|---|
| Harness bug catalog + authoring checklist (the A*/B* entries cited above) | docs/gotchas.md |
| Converting a legacy test end to end | docs/converting-a-test.md |
| Architecture and layering | docs/architecture.md |
| Tool inventory and what each gate runs | docs/tooling.md |
| Selector discovery / authoring, page objects, navigation, BasePage, debugging | docs/guides/ |
The host-side eff* toolchain (effcheck, effnext, effscaffold, effverify,
effloop, the effwatch bridge) lives in the testops-tools repo under
tae-conversion/; see its README for setup. The device-side dump tools
(effview, effpretty) ship in-tree under ui/efficiency/devtools/.
6821231
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.