Skip to content

Port the test overview page to Vue - #4231

Open
williamjallen wants to merge 2 commits into
Kitware:masterfrom
williamjallen:test-overview-vue-refactor
Open

williamjallen wants to merge 2 commits into
Kitware:masterfrom
williamjallen:test-overview-vue-refactor

Conversation

@williamjallen

Copy link
Copy Markdown
Member

Rewrites testOverview.php from AngularJS to Vue. The page still loads its data from the legacy testOverview and timeline APIs and reuses the shared legacy filters, sorting, paging, calendar and timeline code from the earlier ports. Saved sort orders and page sizes in users' cookies keep working. The AngularJS controller and template are removed, along with the timeline directive that only this page used.

The existing Dusk tests pass against the new page. A few bugs are fixed along the way. Each test's link to its runs used only the last day of a date range and didn't URL-encode the test or project name, so names containing characters like &, # or + broke the link. The link now carries the whole range and encodes both names. The Prev/Latest/Next links now keep "Include passing tests" as they already kept the build group.

Adds Dusk tests for `testOverview.php` ahead of its Vue rewrite. They only use `data-test` hooks, which this change adds to the AngularJS template with no change in behavior, so the same tests can verify the rewrite. They cover the per-test failure and timeout statistics, build group and passing-test selection, sorting, paging, filters and navigation. No Cypress tests covered this page.
Rewrites `testOverview.php` from AngularJS to Vue. The page still loads its data from the legacy `testOverview` and `timeline` APIs and reuses the shared legacy filters, sorting, paging, calendar and timeline code from the earlier ports. Saved sort orders and page sizes in users' cookies keep working. The AngularJS controller and template are removed, along with the timeline directive that only this page used.

The existing Dusk tests pass against the new page. A few bugs are fixed along the way. Each test's link to its runs used only the last day of a date range and didn't URL-encode the test or project name, so names containing characters like `&`, `#` or `+` broke the link. The link now carries the whole range and encodes both names. The Prev/Latest/Next links now keep "Include passing tests" as they already kept the build group.
@williamjallen

Copy link
Copy Markdown
Member Author

Depends on #4228

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant