Skip to content

test(e2e): run browser-based storefront tests against a Warden environment - #396

Open
marcelmtz wants to merge 42 commits into
mage-os:mainfrom
marcelmtz:feat/internal-e2e-canary
Open

marcelmtz wants to merge 42 commits into
mage-os:mainfrom
marcelmtz:feat/internal-e2e-canary

Conversation

@marcelmtz

@marcelmtz marcelmtz commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Revives the stalled browser-based e2e work as something a release can be gated on. Builds on #395 (merged), which added the serving inputs this needs.

Three pieces:

  1. _internal-e2e.yaml — a canary that stands a store up with this PR's warden/setup-environment and runs a browser against it. Uses ./actions/... deliberately, so it tests the action changes in the PR rather than whatever is on main.
  2. The suite in _test/demo-package/Test/e2e/ — 19 tests across a storefront half and an admin half, plus a fixture profile.
  3. e2e.yaml — a reusable workflow_call workflow the release pipeline can call, with e2e-README.md. The canary cannot be reused for that: a relative action path in a reusable workflow resolves against the caller's checkout, so own-repo actions are referenced by full ref here, as integration.yaml and full-integration-tests.yaml already do.

The release-pipeline job that calls it is open as mage-os/generate-mirror-repo-js#387, blocked on this PR merging.

Verified

Canary and release-gate rehearsals, green on a cold store:

19 passed (2.1m)

Every test, including the admin session setup, on a store installed from repo.mage-os.org and served through Warden with Varnish owning the page cache. e2e.yaml has been exercised as a caller sees it — inputs, suite checkout, artifact, outputs — on a fork branch, since nothing in this repository calls it yet.

Orders land for real: a guest order with customer_is_guest=1, a signed-in one attached to a customer id and listed in that account's My Orders, both Flat Rate - Fixed. The admin order goes further — invoiced, shipped and refunded, through state=complete to state=closed with total_paid and total_refunded both equal to the grand total, nothing due, and a row in each of sales_invoice_grid, sales_shipment_grid and sales_creditmemo_grid. That is the whole order state machine a store with no gateway credentials can reach, and it needed no new fixtures — the documents are made from the order the spec already places. And the suite bites — with carriers/flatrate/active set to 0 it fails at rate selection with Flat Rate should be offered for the shipping address, not somewhere downstream.

What the specs assert, and why

A 200 is not evidence of a storefront: the admin login page, a CMS no-route page and a Magento error page all answer 200 with a header, a footer and a title. So each assertion is one that fails on something a storefront check should not accept.

Spec Asserts
storefront/hello-magento.spec.ts 200; body.cms-index-index and an attached minicart (not some other 200); document.styleSheets has parsed rules (not an empty pub/static — a stylesheet that 404s is still a <link>)
storefront/guest-checkout.spec.ts category listing → product page → cart → shipping address → rate → payment → order, asserting a 9-digit increment id
storefront/customer-checkout.spec.ts address book → checkout that already knows the shopper → order → the same increment id in My Orders and on the order page
storefront/product-page.spec.ts the product page's own details, then a cart whose line total, subtotal and grand total add up
storefront/customer-account.spec.ts register → signed in → sign out → sign in, and a refused credential
storefront/search.spec.ts a sku read off a product page comes back from full-text search and ranks first; an absent term returns the no-results page
admin/login.spec.ts the sign-in form under the configured frontname refuses a bad credential and accepts the one the install created
admin/product-grid.spec.ts the grid renders through Magento_Ui and filters server-side
admin/menu-navigation.spec.ts the admin's own rendered link reaches the product grid, secret key in the URL or not
admin/create-product.spec.ts admin form → EAV save → url rewrite → indexers → storefront → quote
admin/create-category.spec.ts category tree → save → url rewrite → category index → storefront listing and menu
admin/create-customer.spec.ts customer form → save → read-back → the storefront refuses the address twice
admin/create-order.spec.ts create-order form → quote → shipping rate → payment → order → sales_order_grid, then invoice → shipment → credit memo, asserting new → processing → complete → closed and all three document grids

Checkout is the deepest storefront path available: it touches the price index, the quote, the shipping and payment method pools, order placement, and the private-content sections Varnish has to punch holes for. Searching is the only thing that asks OpenSearch a question — the workflow installs it, probes it and prints its version, and until this suite nothing ever queried it. The admin half reaches the parts of the application a storefront request never loads — Magento_Ui grids, the EAV save path, the admin's own routing and ACL.

Every test also fails on a JavaScript error or a failed request the page logged while it ran, so a release that boots but logs a broken asset or a 500 on an XHR is red rather than green.

Each area owns a directory and matches its Playwright project positively, with its own support module (admin/support.ts, storefront/luma.ts, storefront/support.ts) and one shared page fixture.

Three races a browser loses and a person does not

Each was diagnosed by measurement, and each is written up where it was fixed:

  • Option controls arrive empty. The server sends an empty <select>; Magento_ConfigurableProduct's widget fills it from spConfig a moment later. Reading it immediately found nothing to choose, so a configurable reached add-to-cart unconfigured and was refused by validation — with no success message and nothing anywhere about options. The suite now waits for a selectable option, so a product nobody can configure fails naming the locator.
  • The form key is minted in the browser. form-key-provider.js has to, because a page out of the full page cache would otherwise carry someone else's key. Measured from document commit: no cookie and a stale input at +0ms, both present and matching at +250ms. A form filled faster than that POSTs the stale key and Magento answers Invalid Form Key. Please refresh the page. Every storefront form submit now waits for the two to agree — including the admin spec whose two historical failures of exactly this kind had been put down to a stale admin session.
  • The admin's own XHRs exhausted the session handler. admin/create-order has flaked since it was written, always as a click timing out against Magento's "Attention" modal. The cause was three steps away: the page starts one admin session per ui-component request, Redis session locking allows six waiters, the seventh is refused with ConcurrentConnectionsExceededException, that request returns 500, and the modal that reports it swallows the click. --repeat-each never reproduced it, because the burst is inside one page load rather than across tests; the run's own exception.log named it in one line. The workflow now installs with max_concurrency=20 — raised rather than switched off, so session locking stays in force and a regression in it still has somewhere to show.

That last one is also why the Report what Magento logged step runs whether the suite passed or not: a Playwright retry that succeeds makes the run green, if: failure() never fires, and the evidence was being discarded exactly when it was most needed.

The store the gate configures

The workflow sets four values after the install, each with the reason next to it in the step: web/secure/use_in_frontend and use_in_adminhtml (the browser speaks https to Traefik), admin/security/admin_account_sharing (a login otherwise terminates the saved session, as upstream's own integration suite works around), and admin/security/use_form_key.

That last one deserves a reviewer's attention. It is "Add Secret Key to URLs", not the POST form key — AbstractAction::_processUrlKeys validates form keys on every logged-in POST whatever it is set to, so admin CSRF protection stays on either way. What it adds is a /key/<hash>/ segment on admin GET URLs, and with it on a GET to a bare admin route is answered with a 302 to the dashboard: a 200 no failed-request check can see. It is off because the admin specs navigate by bare route. admin/menu-navigation.spec.ts is the one that does not, and it passes with secret keys on — the measured negative control is in the suite README.

Fixtures

A bare setup:install has no salable product, so checkout has nothing to buy. fixtures/mageos-e2e.xml seeds the least data it takes: 20 simple products with deterministic SKUs, one configurable, two categories in the main navigation. 12s wall clock, including the reindex the command runs itself, and idempotent.

Core ships no profile for functional seeding — the smallest of the five performance profiles generates 800 products, 100 images and 80 orders, because those exist to benchmark a store under catalog weight. Sample data was the other option and is worse for a gate: it is mirrored into repo.mage-os.org so it needs no Adobe credentials, but its content changes between releases, so an assertion on a product name becomes an assertion about sample data.

Two things a reviewer should know about the profile:

  • It does not carry small.xml's admin/security/use_form_key and admin_account_sharing values. The gate does need both, and the workflow sets them; a fixture profile is not where a gate's store config belongs, or a hand-seeded store would get a different store than CI.
  • It carries two <configs> entries because one fatals: ConfigsApplyFixture.php:29 iterates $configs['config'] as a list, but a single <config> element collapses to a flat map, so it iterates that element's own values and dies with Cannot access offset of type string on string. small.xml has four entries, so upstream never sees it. Worth a one-line fix in mage-os/mageos-magento2 separately.

Signing in to the admin

Magento has no configuration flag that switches 2FA off: twofactorauth/general/force_providers is empty by default and ControllerActionPredispatch still routes a fresh admin user to tfa/tfa/index. Disabling the module is the only way in, and MageOS_PasskeyAuth requires it, so both go in one command — behind disable_admin_auth_modules, which a storefront-only caller sets false. The cost is explicit: a run with this on does not cover admin 2FA. Doing that properly means driving a TOTP provider from its shared secret, which is worth a spec of its own.

The admin login CAPTCHA is also on by default, in after_fail mode after three failures per login name, counted in a table that survives across runs. A suite asserting that a bad credential is refused produces exactly those failures, so the step disables it — otherwise the negative control poisons the positive one and the symptom is Incorrect CAPTCHA on a password that is correct.

The Warden environment already brings up nginx, Varnish and Traefik, but
nothing installed into it is reachable from the runner itself. Integration
tests never noticed, because they drive Magento's own bootstrap rather than
making HTTP requests.

Three things have to be true before a browser can reach the storefront, and
each is added here behind a default that preserves current behaviour:

- setup:install needs --base-url, or Magento redirects to its default base
  URL regardless of where the environment is served
- the Traefik hostname needs resolving on the runner, which has no dnsmasq
- static content needs deploying, or the storefront returns 200 and renders
  nothing

Also exposes the served URL as an output, so a caller does not have to
reconstruct it, and makes the admin frontName and the Warden environment
naming configurable rather than hardcoded -- a predictable admin URL is a
prerequisite for testing the admin at all.

Existing callers pass none of the new inputs and are unaffected.
Adds the canary for the browser-serving inputs on
warden/setup-environment: it installs Mage-OS, serves it, deploys Luma's
static content and drives a browser at the result, following the
_internal-* convention the other actions in this repository use.

The suite lives with the demo package, as the dummy e2e test already
did. It stays deliberately small: its job is to prove a storefront is
being served, not to cover a store's behaviour.

The assertions are chosen to fail against things that should not pass. A
200 is not evidence of a storefront -- the admin login page, a CMS
no-route page and a Magento error page all answer 200 with a header, a
footer and a title -- so the suite checks the resolved route in the body
class, Luma's minicart block and whether a stylesheet actually parsed
into rules. Without the last one it would pass against a store whose
pub/static was never deployed.

The suite now refuses to start without PLAYWRIGHT_BASE_URL rather than
falling back to a public demo store, since a suite that reports green
about a store nobody asked about is worse than one that will not run.
The first run failed in the post phase of the Warden step: the local
action could no longer be found. warden/setup-environment checks the
Warden CLI out into warden/ at the workspace root, which is exactly
where this repository keeps that action, so the checkout landed on top
of it.

Checking the repository out into actions/ leaves the workspace root free
for the Warden CLI, which the steps reach as
$(dirname $(pwd))/warden/bin/warden.
@marcelmtz

Copy link
Copy Markdown
Contributor Author

Green on run 42044685090 — 4m13s for the whole job:

Phase Duration
composer create-project --no-install 3s
warden svc up && warden env up 56s
composer install (643 packages, in the container) 64s
setup:install → [SUCCESS]: Magento installation complete. 16s
admin user + config preset 17s
setup:static-content:deploy (blank + luma, en_US) 10s
indexer:reindex 2s
curl --head → HTTP/2 200 —
Playwright 2s

Cheaper than I expected, which matters for the next step: gating a release on this costs minutes, not a budget conversation.

The first run failed, usefully

Can't find 'action.yml' under '.../github-actions/warden/setup-environment'

warden/setup-environment checks the Warden CLI out into warden/ at the workspace root — which is exactly where this repository keeps that action, so the checkout landed on top of itself. Fixed here by checking the repository out into actions/; the workspace layout is now documented on #395, since it will bite any caller repository with a warden/ directory of its own.

Verified against a real store, not just in CI

The suite passes against a Mage-OS 4.0.0 Luma store, and the negative control confirms the discriminator bites. Pointed at the admin login page, which answers 200 with stylesheets attached:

Error: expect(locator).toHaveClass(expected) failed
Expected pattern: /cms-index-index/
Received string:  "m137-admin-theme adminhtml-auth-login page-layout-admin-login"

That is the vacuous green this suite is built to refuse.

Staying in draft until #395 merges, since its commits are in this diff until then.

The README told the reader to point PLAYWRIGHT_BASE_URL at the admin URL
and watch the test go red. It does not go red: page.goto("/") resolves
against the origin and drops the path, so the run hits the homepage again
and passes -- the exact vacuous green this suite exists to refuse.

Replacing it with a throwaway spec that navigates to the admin path
directly, and the output it produces against a real store.
trace: on-first-retry only produces a trace once a test has failed and
been retried. A gate that fails is read by someone deciding whether to
ship, and "re-run it and watch" is not an answer at that point, so the
first failure now carries its own trace.

Report artifacts are kept for 30 days rather than 7, long enough to
outlive a release weekend.
The homepage check proves a store is served. It does not prove a store
can take money. This walks the deepest path a storefront check can:
category listing, product page, cart, shipping address, rate selection,
payment, order. It touches the price index, the quote, the shipping and
payment method pools, order placement, and the private-content sections
Varnish has to punch holes for.

That path needs a salable product, which a bare setup:install does not
have. fixtures/mageos-e2e.xml seeds the least data it takes: 20 simple
products with deterministic SKUs, one configurable, two categories in
the main navigation. 12s wall clock on Mage-OS 4.0.0 under Warden,
including the reindex the command runs itself, and idempotent.

Core ships no profile for functional seeding -- the smallest of the five
performance profiles generates 800 products, 100 images and 80 orders,
because those profiles exist to benchmark a store under catalog weight.
Sample data was the other option and is worse for a gate: its content
changes between releases, so an assertion on a product name is an
assertion about sample data rather than about Mage-OS.

Verified both directions against a Warden store: green with three
persisted guest orders carrying Flat Rate and a $6.00 grand total, and
red at the rate-selection step with carriers/flatrate/active set to 0.
The checkout spec needs something to buy, and the install the workflow
stands up has nothing. The profile is copied into the project directory
because the command runs inside the container, which sees only that.

It reindexes itself, so no indexer:reindex follows it.
The runner cannot write into the project directories the container has
written to, because those are owned by the container's user:

  cp: cannot create regular file 'var/mageos-e2e.xml': Permission denied

Piping the profile through exec avoids host permissions entirely and
leaves nothing behind in the project. Keeping the profile outside
setup/performance-toolkit means its di.xml is not loaded, which only
mocks the mail transport -- noted in the profile, and nothing here
generates customers or orders.
Which product a category lists first is not ours to decide, and on a
clean install it is the configurable. That will not go into the cart
until every attribute has a value, so the first CI run failed waiting
for a success message that was never coming -- it had a validation
error instead. It passed locally only because a leftover simple product
happened to sort ahead of it.

Selecting the first available value for whatever the page asks for
makes the step indifferent to catalog order, and lets the spec run
against a simple product, a configurable, or a merchant's own catalog.

Verified against a configurable locally: one dropdown, three values,
first selection adds to the cart.
_internal-e2e.yaml proves the actions work, but it cannot be reused: it
references them through "./", and a relative path in a reusable workflow
resolves against the caller's checkout, which is not this repository
when the caller is the release pipeline. So own-repo actions are
referenced by full ref here, as integration.yaml and
full-integration-tests.yaml already do.

test_command is an input rather than a hardcoded "npx playwright test".
The workflow's job is to stand a store up and hand over a URL; it should
not know what runner points at it, and a caller wanting a grep filter, a
shard or a different reporter should not need a new input for each. It
arrives through the environment rather than interpolated into the
script, so quoting is bash's problem and not the expression engine's.

Evidence policy stays in the suite's config, so the default command
carries no flags: a CLI flag overrides the config, and --trace on
records a trace for every passing test.

fixture_profile seeds a catalog before the run, because a bare
setup:install has nothing to buy. Empty skips it, which is right for a
suite that asserts only on what a bare install provides.

Verified green end to end on a throwaway branch, with the Warden action
pointed at the stacked serving branch: store served, catalog seeded in
9s, 2 specs passed. At @main it needs the serving inputs, so this cannot
go green until mage-os#395 is on main.
@marcelmtz marcelmtz changed the title test(e2e): run a storefront smoke test against the Warden environment test(e2e): run browser-based storefront tests against a Warden environment Nov 10, 2026
An expression interpolated into run: is substituted before bash sees
the script, so its content has to be trusted as shell. This one is our
own action's output rather than anything a caller supplies, so nothing
was exploitable, but it is the pattern issue mage-os#314 asks this repository
to stop using, and there is no reason for the gate to be the exception.

No expression is interpolated into a run: block in either workflow now.
Probed from the running store rather than echoed back from the inputs. A
version input can be a constraint, the repository can resolve it
differently than expected, and a service tag does not carry its patch
level: the local store asked for opensearch 3.3 and runs 3.3.2. A
failing release gate has to be able to say which.

MAGEOS_VERSION and MAGENTO_VERSION reach the suite, because a spec may
reasonably branch on either -- Luma markup tracks upstream Magento while
feature availability tracks Mage-OS. The rest goes to the job summary;
no spec should branch on a Redis patch level.

Nothing here can fail the job. A probe that comes back empty reports
unknown, because a disabled service is not a broken store. Two probes
needed care: varnishd -V writes its version to stderr, and OpenSearch
reports its own several lines into a JSON body.

The READMEs state the preference for test.skip with a reason over a
--grep exclusion, so that a version condition which stops applying is
visible in the report instead of silently selecting nothing.
The storefront is a thin skin over the catalog; the admin is where the
framework lives, and where a release is most likely to break. This adds the
enablement the admin needs and one spec that proves it works, so the specs
that exercise UI components and the EAV save path have somewhere to start.

Nothing in Magento switches two-factor authentication off. There is no enable
flag, and leaving twofactorauth/general/force_providers empty does not help:
ControllerActionPredispatch still routes a fresh admin user to tfa/tfa/index,
which redirects to tfa/tfa/requestconfig. Disabling the module is the only
route in, and MageOS_PasskeyAuth requires it and registers an admin 2FA
provider, so both go in one command or dependency validation refuses it. The
cost is stated in the workflow and the README: this gate does not cover admin
2FA, and doing that properly means driving a TOTP provider.

The admin login CAPTCHA is on by default -- admin/captcha/enable 1, after_fail
mode, three failed attempts per login name, counted in captcha_log. A suite
that asserts a bad credential is refused manufactures exactly those failures,
so leaving it on lets the negative control poison the positive one, reported
as an "Incorrect CAPTCHA" on a correct password. Disabled, and the specs limit
their own exposure: the refusal test uses a name that is not an account, and
the three sign-in assertions are separate tests, so each gets its own context.

No blanket modal dismissal. Both candidates were checked instead of assumed:
Magento_AdminAnalytics' prompt is gated by admin/usage/enabled, which defaults
to 0 and is now pinned, and Magento_ReleaseNotification builds its URL from
system/release_notification/content_url, which Mage-OS ships empty. Neither
renders. A helper that clicked away whatever covered the page would be dead
code today and would hide a real blocking dialog later.

Assertions are on page identity, not URLs: Magento serves the dashboard at
whichever admin path was requested, so a URL assertion passes or fails
depending on how the session arrived. #login-form is ambiguous -- the
storefront authentication popup uses the same id -- so the body class is
asserted first, which a wrong-frontname negative control found.

The sign-in is a project dependency rather than a globalSetup hook so it is
its own reported result: a broken session fails once and the admin specs
report "did not run", instead of a wall of identical reds.

Verified against a live store: three sign-in tests and the storefront smoke
green in 14s, and both negative controls red -- a wrong password and a wrong
frontname each fail the session setup on the assertion that should catch them.
Leaving 2FA in place means the admin specs cannot sign in, so the flag only
makes sense together with a test_command that does not select them. Without
that, the run fails on the session setup rather than on anything it meant to
test.
Two admin specs, in this order on purpose.

The grid spec is the whole Magento_Ui stack in one page: requirejs
resolves the component, Knockout renders the table, a separate
mui/index/render request answers with the data and the collection
applies the filter. If that is broken, every admin screen is broken --
and a create-product spec fails too, with no way to tell "the form never
rendered" from "the product could not be saved".

The create spec then crosses the seams no storefront check can reach:
form validation, the EAV write path, attribute set defaults, the stock
item, url rewrite generation, the indexers that make a product salable,
and a storefront quote. Fixtures are written straight to the database,
so a seeded catalog passing says nothing about whether a merchant can
add a product.

The Luma selector map moves to luma.ts, shared with guest-checkout, so
the two specs agree on what a product page looks like.

Four traps, each found by a red run rather than by reading markup:

- Every grid toolbar and table exists twice, duplicated inside
  .sticky-header, so both match two elements. The real table carries
  data-role="grid"; the real toolbar is a direct child of the outer
  wrap.
- The notification bell is a second grid on every admin page, and its
  loading mask is otherwise indistinguishable from the one under test,
  so the mask is selected by data-component.
- Grid filter state is saved per admin user in ui_bookmark, not per
  session, so a filter one run leaves applied is still applied for the
  next. Both specs start unfiltered and the filter is cleared as an
  asserted step.
- The grid caches pages client-side, so clearing a filter can re-render
  with no request at all. Counts that settle asynchronously are polled.

catalog/product/new is a 404 without an attribute set, so the spec
clicks Add Product rather than hardcoding the default set id, and the
url key is set explicitly so the storefront step is about url rewrites
rather than about how a name becomes a url.

The spec writes one product per run, with the sku generated inside the
test so a retry does not collide with what the failed attempt saved.
Both READMEs say so: an admin suite belongs against a throwaway store.
The reachability check reported a 404 and passed. It was

  curl --silent --show-error --fail --insecure --head "$BASE_URL" | head -1

and a GitHub `run:` without `shell: bash` runs under `bash -e` with no
`-o pipefail`, so the pipeline exited with head's status and discarded
curl's. The one step whose entire job is to say "nothing was served" said
the opposite, and nine specs then failed against a store that was never
there -- which reads as a broken suite rather than a broken environment.

The status is now captured and compared, so the step does not depend on
pipefail being set to mean what it says.

A failure diagnostics step comes with it. When this goes wrong the
containers leave with the runner, and nothing in the log says whether
nginx was up, whether Varnish had a backend, or whether Traefik had a
route at all -- a Traefik 404 and a Magento 404 are indistinguishable
from outside, and only one of them is about the store.
Every request to the store answered 404, with every container in the
environment reporting healthy and bin/magento working fine inside them.
The diagnostics step added alongside this says why:

  traefik | level=error msg="Failed to retrieve information of the
  docker client and server host: Error response from daemon: client
  version 1.24 is too old. Minimum supported API version is 1.40"

Warden 0.14.2 pins traefik:2.2, whose Docker provider speaks API 1.24,
and the Docker daemon on GitHub's current runner image refuses anything
below 1.40. Traefik therefore reads no container labels, builds no
routers, and returns its own 404 for every host -- which from outside is
indistinguishable from a Magento 404, and from the install's point of
view nothing is wrong at all.

The image tag is a variable in the compose file Warden ships
(traefik:${TRAEFIK_VERSION:-2.2}), so this sets it to 2.11, the tag
Warden itself moved to, rather than bumping the pinned Warden version:
0.16 also changes where the certificates are mounted, which is a larger
change than a broken proxy needs.
The traefik_version input is only legible with the failure beside it: a
proxy that cannot reach the Docker daemon reads, from outside, exactly
like a Magento that cannot find a route.
Two findings from the first CI run of this spec, both in the save path.

The sku was wrong in the store. Magento_Catalog/js/components/import-handler
mirrors the name into sku, url_key and the meta fields through the masks in
catalog/fields_masks, and stops only once a field has been edited by hand.
The name field is configured valueUpdate: 'keyup', which Playwright's
fill() does not emit, so the import runs on the name's change event --
which fires as focus leaves it, i.e. while the sku is being filled. The
two interleaved and the store ended up with a sku of "<name><sku>":

  Mage-OS E2E Product 1794623536178mageos-e2e-1794623536178

Every assertion passed anyway, because the grid's sku filter is a LIKE and
a contains assertion is satisfied by a superstring. So the spec reported
that it had created a product it had not created.

The name is now blurred before anything else is typed, the sku is filled
last, and three assertions make the trap unable to return quietly: the
field holds what was typed, the saved edit form reads it back, and the
grid cell equals the sku rather than containing it. Verified against the
database -- the row now reads mageos-e2e-<stamp> exactly.

The save was also flaky in CI: it timed out at 20s on the first attempt
and the retry passed in 10s end to end. The first product save on a
freshly installed store in developer mode pays for code generation along
the save path, then for the Update on Save indexers -- price, EAV, product
categories, catalog search -- which is work this gate wants happening. So
that one assertion gets 90s, and the test 180s.

It waits for the success *or* the error message, which is what keeps a
generous timeout honest: a save rejected by validation now fails in a
second showing the message, instead of in ninety with "element(s) not
found".
The ceiling of 90s was still not enough: in CI the first attempt ran 1.8
minutes and the retry passed in 14.9s. Three runs now put the first save
a store ever performs at 12s, 17s and over 90s, with every retry at
about 15s -- so the cost is the first save, not a slow runner.

Four minutes, then, with the test at five. High enough that runner
variance produces a slow pass rather than a red gate, and retries: 1
covers the rest. A failure on the retry as well would mean the save path
itself regressed, which is what the gate is for.

Waiting for the error message as well as the success one is what keeps a
ceiling this generous honest: a validation failure still reports in
about a second.
The product spec covers one write path. These cover the two others a store
is actually made of, and almost nothing is shared between them.

The category spec drives the jstree sidebar, the category form and the
legacy grid widget that assigns products, then asks the storefront for a
url that did not exist a moment ago and for a menu entry that was cached
without it. The customer spec covers a different entity type, the website
and group assignment, and the repository the storefront reads through --
proved by registering the same address on the storefront and being refused.

The customer spec deliberately never asserts on the customer grid.
Customer::reindex() is a no-op while customer_grid is scheduled, which is
its default, so on any store without cron a saved customer is absent from
that grid. Asserting it would go red against a store that works.

Both were verified by breaking them: a tampered url key fails on the 404,
an unassigned category fails on an empty listing, and a fresh email fails
the duplicate-address assertion rather than passing on any error at all.
A failed XHR breaks no assertion. Magento_Ui renders a listing from its
client-side page cache and keeps the last good state when a request fails,
so a grid whose data provider returns 500 goes on showing the rows it
already had -- measured: a 500 on mui/index/render left the row count
unchanged at 20, raised no pageerror, and the grid spec passed. Private
content behaves the same way. That is the half of a page no assertion in
this suite can see, and it is most of what a Magento page does after it
renders.

fixtures.ts watches pageerror, console errors and any response at or above
400, and fails the test with the status, method and URL. Specs import test
and expect from it rather than from @playwright/test.

Committed strict only after a report-only run of all eleven specs, which
produced exactly one recurring finding: guest-carts/<id>/totals answering
404 some 460ms after payment-information returned 200, because the checkout
refreshes totals for a quote the place-order call has already consumed. The
ignore list is that one entry, scoped to that path and that status, plus
the browser's URL-less "Failed to load resource" echo of what the response
listener already reports properly.

Demonstrated red by 404ing a background XHR no assertion mentions: the
spec passes every assertion it makes and then fails on the fixture.
setup:install is already told where to purge whenever a Varnish service is
requested (--http-cache-hosts=varnish:80), but Magento's page cache
defaults to its own built-in implementation and the purge only fires when
the configured type is Varnish:

    if ((int)$this->config->getType() === Config::VARNISH && ...)

So a Warden environment serves every request through a Varnish that
Magento never invalidates. Save a product and the category page keeps the
copy it already had.

This is quiet rather than loud, which is what makes it worth fixing before
anything trips over it: a suite whose specs each visit a URL once never
notices, because there is no stale copy to serve. The first spec that
changes something and looks at the same page again fails, and reads as a
Magento bug rather than as an environment that was never told which cache
it has.

New varnish_as_page_cache input, off by default so existing callers keep
the behaviour they have, and set in both e2e workflows. It installs no
VCL -- Warden's Varnish image ships a Magento-compatible one.

The stack summary now also records which side owns the page cache and what
the homepage's Cache-Control, Age and X-Magento-Cache-Debug headers say,
so the answer is a line in the report instead of a reading of the source.
The first rehearsal with Varnish owning the page cache reported a finding
the local runs never produced: Chrome aborting a cross-document view
transition in flight on a category and a product page, first attempt only,
retry clean.

    Transition was aborted because of invalid state.
    ViewTransition opt-in disabled

Mage-OS enables those transitions by default -- MageOS_ThemeOptimization
renders @view-transition { navigation: auto; } on every storefront page and
system/view_transitions/enable defaults to 1 -- and under automation the
navigations arrive faster than a person's.

Ignored, narrowly, because a gate that reports a flake is a gate people
learn to re-run. Still worth reporting upstream: the module's own source
notes that some in-app browsers never finish the transition and leave the
page blank, so the feature has failure modes a cosmetic label does not
cover. Any other uncaught exception, including any other view-transition
failure, remains a finding.
Every admin spec here navigates by bare route, which only works while
admin/security/use_form_key -- "Add Secret Key to URLs", not the POST
form key -- is off. module-store/etc/config.xml ships it as 1, and with
it on AbstractAction::_processUrlKeys answers a keyless admin GET with
_redirect($this->_backendUrl->getStartupPageUrl()): a 302 to a 200 on
the dashboard, which no failed-request check can see.

So the suite's admin coverage currently depends entirely on a setting a
merchant's store does not have. This spec is the hedge. It reads the
Catalog > Products href out of the menu Magento rendered -- Block\Menu
renders the whole tree server-side, Block\AnchorRenderer emits
<a href="{$menuItem->getUrl()}">, so the key is already in it -- and
follows that. It passes with the setting either way, and it is the
pattern the other admin specs would adopt to drop the setting entirely.

Measured, with the setting at 1 on a running store:

  menu-navigation.spec.ts   passed
  product-grid.spec.ts      both tests failed at adminGrid().ready()

Which way the store was configured is recorded as an annotation rather
than asserted, so a report says what the run proved.

It also makes an assertion nothing else here can: every other
navigation is a relative path, so this is the only place the suite
reads a URL the store generated. An admin building links on the wrong
host or scheme fails here and nowhere else.
The e2e workflows asked warden/setup-environment for
run_magento_config_preset: 1 -- one boolean over seven config:set
calls, two of which move the store away from what it ships as. A gate
that does that should say so where the gate is defined.

The two workflows now set what they need themselves, after the action:
the web/secure pair, admin/security/use_form_key, account sharing and
the WYSIWYG setting, each with the reason next to it. web/seo/use_rewrites
is dropped -- setup:install already passes --use-rewrites=1 whenever it
is given a base URL, which these workflows always do. Values are
otherwise unchanged, so this is the same store, described.

The suite README was wrong about one of them, in a paragraph telling
people what not to copy out of the fixture profile: it called
admin/security/use_form_key admin CSRF protection. It is not.
Magento\Backend\Model\Url names that path XML_PATH_USE_SECURE_KEY and
the admin labels it "Add Secret Key to URLs"; _processUrlKeys validates
the POST form key regardless of it. The README now states what the
setting does, what it costs this suite to turn it off, and what the
measured consequence of turning it on is.

Also drops a duplicated web/secure/use_in_frontend from the preset in
the action, which set the same value twice.
static_content_themes named Magento/backend, which is the parent of the
theme the admin runs in: mage-os/theme-adminhtml-m137 registers
MageOS/m137-admin-theme, and that is what the admin asks for. The child
was never deployed, so Magento materialised it on the first request --
and while it did, the browser's request for the stylesheet was answered
with Magento's HTML 404 page.

Run 43932819737 is where it surfaced: the error-watching fixture failed
the admin session setup with

  Refused to apply style from '.../MageOS/m137-admin-theme/en_US/css/
  styles.css' because its MIME type ('text/html') is not a supported
  stylesheet

first attempt only, clean on retry. So the admin has been rendering
unstyled on the first page load of every run so far, and no assertion
in the suite has anything to say about CSS.

Both admin themes are deployed, the parent included. Naming a theme a
store does not have is harmless: nothing validates the list up front,
Deploy\Strategy\StandardDeploy::canDeployTheme walks the registered
themes and checks each against it, so an unmatched name deploys nothing
and fails nothing. That is what lets one default serve a Mage-OS and a
Magento caller.
Three specs, one per thing a store does that nothing here covered.

product-page.spec.ts looks closely at what guest-checkout walks past.
It asserts the product page's own details -- a sku, a stock status, a
price -- and then the cart's arithmetic: unit price times quantity is
the row subtotal, the rows are the subtotal, subtotal plus shipping is
the order total. Totals are assembled by collectors any module can
replace, so that is an assertion about the release. Every amount is
compared against another amount the store rendered, never against a
number in the spec.

customer-account.spec.ts covers the account itself: register, the
session that registering opens, sign out, sign in again, and a
credential that is not an account. Luma renders every login field twice
with the same ids -- the authentication popup ships a hidden copy of the
form on every page -- so #send2 matches two elements and #pass matches
the invisible one. Everything is scoped to .login-container, and the
README has the measured table.

admin/create-order.spec.ts places an order the way a merchant takes one
by phone: new customer, product off the search grid, address, flat rate,
check / money order, submit. That is a different code path from the
storefront's REST quote, through the same quote model and method pools.

What that page taught, all of it measured:

- Every interaction is a POST to sales/order_create/loadBlock that
  re-renders part of the form, and there is no ready state. Waiting on
  timeouts reads the items grid before it re-renders and reports "No
  ordered items" for a product that was added. The spec counts those
  requests and waits for them to stop.
- The row checkbox needs click(), not check(): the legacy grid's
  selection hangs off the click handler, so check() silently adds
  nothing.
- A shipped store has exactly one payment method, so the admin applies
  it and collapses the block -- the radio is in the DOM, checked, and
  hidden. The spec asserts attached, expands if needed, clicks only if
  nothing is chosen.
- The order grid is asserted here and the customer grid is not asserted
  in create-customer: sales/general/async_indexing is 0, so
  sales_order_grid is written in the same request, while customer_grid
  waits for an indexer no CI store has cron for.

Two fixes the new specs surfaced:

- The checkout's post-order 404 has a second form. Measured over six
  repeats: payment-information returns 200 and then, 76ms later, POST
  estimate-shipping-methods 404s against the quote that call consumed --
  the same race as the /totals 404 already ignored, three clean, two on
  totals, one on estimate. Second ignore entry, scoped the same way.
- The storefront half of an admin spec now runs as a visitor
  (asShopper). It inherited the admin cookie jar, including a form key
  the admin area controls, and create-customer failed twice with
  "Invalid Form Key" where it expected the duplicate-email refusal.

selectRequiredOptions moves out of guest-checkout into storefront.ts,
with parseMoney, so the storefront behaviour that is not theme-specific
is shared rather than copied.
The example called the job storefront-check, which undersells a suite that
is ten admin tests to five storefront ones, and did not say why the job sits
between the deploy and the tag push.
@marcelmtz
marcelmtz marked this pull request as ready for review November 17, 2026 13:54
@marcelmtz
marcelmtz requested a review from a team as a code owner November 17, 2026 13:54
The workflows carried a paragraph where a sentence does. Each comment keeps
the fact a reader cannot get from the file next to it -- that use_form_key is
the secret-key setting, that there is no 2FA flag, that the admin CAPTCHA is
on by default -- and the reasoning behind each one stays in e2e-README.md.

Also moves the fixture-profile comment back above the step it describes,
where an earlier edit had left it stranded above the admin step, and names
both admin themes in the README's static content paragraph.
@gregor-RW

Copy link
Copy Markdown

I ran this branch (0357c71) against a local Mage-OS 4.0.0 store. The store config and the fixture profile were the same as in _internal-e2e.yaml. The stack was not the same as in CI:

CI (_internal-e2e.yaml) Local
PHP 8.4 8.5
OpenSearch 3.4 3.9
Page cache Varnish 8.0 built-in
Static files setup:static-content:deploy developer mode, generated on request

On the first run, 14 of 16 tests passed. guest-checkout.spec.ts and product-page.spec.ts failed at the success message after the add-to-cart click:

guest-checkout.spec.ts:84
Locator: locator('.message-success')
Expected substring: "to your shopping cart"
Error: element(s) not found

product-page.spec.ts:91
Locator: locator('.message-success')
Expected substring: "You added Configurable Product 1 to your shopping cart."
Error: element(s) not found

What happened

Both specs opened Configurable Product 1, the first product in Category 1. On both failure screenshots, the attribute dropdown still shows "Choose an Option..." with "This is a required field." The traces have no cart/add request, so the click stopped at client-side validation.

The server renders select.super-attribute-select with only the placeholder option. Magento's configurable.js adds the real options after the page loads. selectRequiredOptions in storefront.ts reads the option values once and does not wait for them. In both traces, that read returned [], and the traces have no selectOption call. In product-page, the read came 170 ms after the navigation to the product page committed.

A re-run of the same two specs passed, so the result depends on timing. I did not run this in CI. The helper has no wait there either, and retries: 1 in CI can hide a single failure.

Repro

Put this throwaway spec next to storefront.ts. It needs the fixture profile, for /configurable-product-1.html. It delays configurable.js by 1.5 s. Against 0357c71, it failed in 3 of 3 runs with the guest-checkout error above.

import { test, expect } from '@playwright/test';
import { luma } from './luma';
import { selectRequiredOptions } from './storefront';

test('a configurable whose options arrive late still goes into the cart', async ({ page }) => {
    await page.route('**/Magento_ConfigurableProduct/js/configurable.js', async (route) => {
        await new Promise((resolve) => setTimeout(resolve, 1500));
        await route.continue();
    });

    await page.goto('/configurable-product-1.html');
    await expect(page.locator(luma.addToCart)).toBeEnabled();

    await selectRequiredOptions(page);
    await page.locator(luma.addToCart).click();

    await expect(page.locator(luma.cartSuccess)).toContainText('to your shopping cart');
});

Suggested fix

Wait for a real option before the read:

diff --git a/_test/demo-package/Test/e2e/storefront.ts b/_test/demo-package/Test/e2e/storefront.ts
--- a/_test/demo-package/Test/e2e/storefront.ts
+++ b/_test/demo-package/Test/e2e/storefront.ts
@@ -1,4 +1,4 @@
-import { type Page } from '@playwright/test';
+import { expect, type Page } from '@playwright/test';
 import { luma } from './luma';
 
 /**
@@ -26,6 +26,7 @@ export async function selectRequiredOptions(page: Page): Promise<void> {
     const selects = page.locator(luma.optionSelect);
     for (let i = 0; i < (await selects.count()); i++) {
         const select = selects.nth(i);
+        await expect(select.locator('option:not([value=""])').first()).toBeAttached();
         const values = await select
             .locator('option')
             .evaluateAll((options) =>

With this change, the repro passed in 3 of 3 runs, and guest-checkout and product-page passed.

The change has one side effect. Today, a dropdown with no usable option is skipped without a message. With the change, it fails after the expect timeout, at the line that names the cause. For a gate, I think that is the better failure. The if (values.length) guard then never skips, so you can remove it.

The admin specs had admin/ and the storefront specs had the root, so the
storefront project had to be defined as "not admin". A spec dropped anywhere
outside admin/ joined it silently, including a helper that happened to be
named *.spec.ts.

Both areas now match positively by their own directory, and each owns its
support module: admin/support.ts beside storefront/luma.ts and
storefront/support.ts. A spec that lands outside both runs in no project,
which is louder than the storefront project adopting it.

No test changed. 16 tests in 12 files, same as before.
The header claimed leaving use_form_key out kept admin CSRF protection on.
It is the "Add Secret Key to URLs" setting, and _processUrlKeys validates
POST form keys whatever it is set to, so that sentence was wrong about the
mechanism. The workflow now sets both settings anyway, so what the comment
has to explain is why they are set there and not here.
Playwright exits 0 when a retry passes, so the failure() step that dumps the
stack never runs. A rehearsal flaked with a 500 from
mui/index/render?namespace=notification_area -- Magento raised its error
modal, the modal covered the grid's filter button, and the click timed out.
The 500 was in the report; the exception behind it was gone with the
containers.

This prints var/report and the tails of exception.log and system.log on every
run, so the next occurrence arrives with its cause attached. Ten repeats in
CI did not reproduce it, and forcing Redis session concurrency to 1 locally
produced lock-wait timeouts rather than 500s, so the cause is still unknown.
Any Magento install writes hundreds of INFO "Broken reference" lines, so a
plain tail would print those on every green run and bury the entry worth
reading. exception.log needs no filter -- nothing but exceptions goes there.
92ede22 rewrote the profile's header and used "--" as punctuation, which is
not legal inside an XML comment. simplexml then refused the whole profile and
the seeding step failed with a libxml warning that prints the comment text
where the message should be, naming only "line: 29".

The rehearsal caught it on the step that owns seeding, before any spec ran,
which is what the separate steps are for.
The gate installs OpenSearch, probes its version and prints it in the run
summary, and no test ever sent it a query. A release that shipped a client
that could not reach the engine, an unbuilt catalogsearch_fulltext index or a
changed result template passed all sixteen other tests.

The spec reads a sku off a product page and searches for that, so it cannot
go stale when the fixture profile renames anything, and it asserts the first
result rather than the only one: a sku with a space in it tokenises into an
OR query and returns the catalogue, while the exact match ranks first either
way. The no-results test is the control that gives the first one its meaning.

Two things the specs found while being written, both in the README:

- The absent term has to be one nonsense token. "zzz-mageos-no-such-product-zzz"
  splits on the hyphens and matches everything on "product".
- Luma's search button is dead ~400ms after typing stops: form-mini's
  debounced input handler disables it and the re-enable does not stick.
  Measured with it disabled, Enter submits and a click does not, forced or
  not. The spec types and presses Enter.
The suite could register an account and it could place an order, but never
as the same person. This covers the path between them: an address saved
through the account's own form, a checkout that arrives already knowing
who is shopping and which address to ship to, and the order showing up in
My Orders afterwards.

Three measured differences from the guest path, each an assertion the
guest spec cannot make:

  #customer-email      absent from the page, not hidden
  #co-shipping-form    present and hidden; the saved address is preselected
  a.order-number       a link to the order, where a guest gets a bare span

That link is the order-to-customer association, so the spec follows it:
the increment id the success page gave it is asserted again on My Orders
and on the order page, together with the sku read off the product page
before it was added to the cart.

The shared pieces move into storefront/support.ts -- the shopper, the
password, the address, the address-form fill and the registration -- so
guest-checkout and customer-account now use them too.

One new entry on the page fixture's ignore list: a signed-in shopper's
quote is carts/mine rather than guest-carts/{maskedId}, so placing the
order leaves the same post-order 404 on a different path. Measured over
six runs; the estimate-shipping-methods counterpart never appeared and is
deliberately not ignored.

Local run: 19 passed. The new spec 5/5 at --retries=0, ~10.5s each.
CI failed the new signed-in checkout spec where a local store passed it,
and the difference turned out to be two races rather than one bug.

Neither option control arrives with its values. The server sends an empty
<select> and an empty swatch group, and the configurable widget fills them
from spConfig once requirejs has it -- measured here as empty on arrival
and three values a moment later. selectRequiredOptions read them straight
after the navigation and shrugged when it found nothing, so a configurable
went to add-to-cart unconfigured, was refused by validation, and the
symptom was a missing success message that said nothing about options. It
now waits for a real option and fails naming the locator if one never
comes: a product nobody can configure is a product nobody can buy.

That is also why CI and a local store disagreed at all. The specs buy
whatever the catalogue lists first, which is the fixture configurable on a
cold store and a simple product on one an admin spec has run against. CI
won the race, bought the configurable, and found the second difference:
an order line carries the *child* sku while the product page shows the
parent's, and Luma never rewrites what it shows when an option is chosen.
luma.ts claimed the opposite; corrected. The order line is now identified
by product name, which is the parent's on both pages, and the sku is
asserted through the rule that explains the difference -- a line with
chosen options carries a variant's sku, a line without them carries the
product's.

The form key is minted in the browser, because a page out of the full page
cache would otherwise carry someone else's. Sampled from document commit:

    +   0ms  cookie=(none)            input=sKSvRQDyz5fExuSH   no match
    + 250ms  cookie=gVEGZbqOGvCViuHP  input=gVEGZbqOGvCViuHP   match

A person never submits inside that window and Playwright sometimes does,
which answers the POST with `Invalid Form Key. Please refresh the page.`
Registration is where this suite loses it -- five fields filled back to
back -- and it is now behind awaitFormKey(), used before every storefront
form submit, including the admin spec that first reported the symptom and
had it put down to a stale admin session.

Verified: 19 passed, and the storefront project 24/24 over three repeats
at --retries=0. The signed-in spec also passes 3/3 pointed at the fixture
configurable, which is what CI buys.
admin/create-order has failed intermittently since the suite was written,
always the same way: locator.click times out with a modal footer
intercepting pointer events, alongside a 500 on mui/index/render. It was
looked at twice and cleared twice -- Redis session concurrency was the
hypothesis both times, and 10 runs at --retries=0 in CI plus 5 locally at
max_concurrency=6 all passed, so the hypothesis was dropped.

The run's own exception.log settles it:

    Cm\RedisSession\ConcurrentConnectionsExceededException
      -> Magento\Framework\Session\SaveHandler\Redis::read  (Redis.php:86)
      -> Magento\Backend\Model\Auth\Session->start()
    main.ERROR: Redis session exceeded concurrent connections

max_concurrency is six by default, and the create-order page starts more
admin sessions than that at once -- one per ui-component XHR. The seventh
is refused, that request 500s, Magento pops its "Attention" modal, and the
modal swallows the click. The symptom is three steps from the cause, which
is why it read as a modal race.

--repeat-each never reproduced it because the burst is inside one page
load, not across tests. The evidence that did was available only because
`Report what Magento logged` now runs even when a retry turns the run
green, which is what that step was added for.

Raised to 20, not disabled: locking stays in force, so a regression in it
still has somewhere to show, while the cap only an automated browser
reaches stops deciding whether the gate is green.
With the Redis session cap raised, admin/create-order failed again on the
next rehearsal -- but in a different step and with nothing in Magento's
logs: `locator.click` timed out for 20 seconds on the product grid's Search
button, which resolved every attempt and was visible on none of them.

The grid re-renders itself while the filter is being typed, and the button
goes with it. varienGrid binds keypress on every filter input and calls
doFilter() on Enter, so pressing Enter in the sku field applies the same
filter without needing the button to still be on the page when the click
lands -- and it is what a person does. The now-unused applyFilter selector
goes with the change.

Local: create-order 5/5 at --retries=0.
The create-order spec stopped at a Pending order. An order that cannot be
invoiced or shipped is a store that cannot be run, and nothing in the suite
touched that: the invoice and the shipment are separate entities with their
own sequence tables, their own grids and their own totals, and creating them
is what moves the order through new -> processing -> complete.

Three steps, on the order the spec already placed rather than in a spec of
its own -- a second spec would pay the dozen round trips of the create form
again to assert something this one is already holding.

Measured while writing them:

- Neither submit button has an id. Both Items blocks add their button
  through addChild rather than the page's ButtonList, so the rendered id is
  random and the label is the only thing separating "Submit Invoice" from
  "Submit Shipment".
- order/totals.phtml names its rows from the key of the totals array, and an
  invoice's keys are positional: col-0 (Grand Total), col-0 (Subtotal),
  col-1 (Shipping). Not descriptive, not unique, so the selectors go by
  label -- and that markup is not the create form's, which is why one spec
  now carries two sets of totals selectors.
- #send_email ships unchecked, which the spec asserts rather than clears: a
  store that pre-checked it would make this step send mail, and the failure
  would present as a broken invoice.

The end state is asserted by absence. canInvoice() and canShip() are both
false once everything is invoiced and shipped, so Order\View adds neither
button; an order still offering them is one whose quantities did not move,
which a status label alone would not catch.
The last transition an offline payment method can reach: complete -> closed.
A credit memo is the one sales document that can only be made from an order
already paid for, so it goes on the end of the same test rather than into a
spec that would have to place and invoice an order of its own first.

The step submits the memo as the page prefills it -- item rows at their
ordered quantity, creditmemo[shipping_amount] at the shipping still
refundable -- and checks the memo's grand total against the order's before
submitting, so a release that stopped prefilling either would show up as a
refund that came up short rather than as a page that failed.

Measured while writing it:

- The heading is "New Memo", not "New Credit Memo" -- the only one of the
  three document pages that does not read like the button reaching it.
- Order\View wraps the Credit Memo onclick in confirmSetLocation when the
  payment method isGateway(), in a plain setLocation when it does not. Check
  / Money order is not one, so the click navigates rather than opening a
  dialog. Noted in the README for whoever installs a gateway method later.
- The memo page offers a second submit-button, labelled "Refund", when the
  payment can refund online, so filtering the click by label is what keeps
  this step from picking the wrong one on such a store.
- back_to_stock ships unchecked, so this refund returns nothing to stock and
  the spec claims nothing about inventory. Deliberate: reservations are a
  separate subject and would tie the spec to the store's inventory mode.

Also widens two notes that were narrower than the truth. order/totals.phtml
keys its rows positionally on the saved order too, not just on an invoice --
col-0 Grand Total, col-1 Total Paid, col-2 Total Refunded, col-3 Total Due --
and all three document pages render their submit button through addChild, so
none of them has an id.

The document grid step now covers sales_creditmemo_grid as well, and asserts
the invoice is still listed as Paid afterwards: a memo is placed beside an
invoice rather than reversing it.
@rhoerr

rhoerr commented Nov 23, 2026

Copy link
Copy Markdown
Member

Dumb question, is it appropriate for the test specs themselves to be in this repository? Or should the specs be loaded from the core repo or similar, so they're correlated to the specific version being tested?

@michielgerritsen

Copy link
Copy Markdown

@marcelmtz Can you explain what you want this suite to achieve? When should it run, and against which code?

From the description, it sounds like the main target is gating releases through generate-mirror-repo-js#387. Is that it, or do you also want it to run on PRs and merges in mageos-magento2? I'm asking because the workflow installs Mage-OS from repo.mage-os.org with composer create-project, so it always tests a published (or preview) release. That works for a release gate, but on a PR it would test the last release and not the PR's changes.

Also, I agree with @rhoerr: the tests themselves belong in the distribution repo, so they change together with the code they test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants