openmct/e2e/tests/functional
Jesse Mazzella 7af7e68779
refactor: add appActions and stabilize overlayPlot and plotRendering e2e test suites (#6612)
* test: add appActions, stabilize overlayPlot test

- Adds `waitForPlotsToRender`, a function that waits for all active `.plot` elements on the page to load and draw their series data
- Adds `getCanvasPixels`, a function that takes a canvas selector and retrieves an array of canvas pixel data.
- Modifies `getCanvasPixels` to use `page.evaluateHandle()` so that the canvas handle lifetime exists throughout the test (this was causing flakiness before)

* test: refactor and stabilize `plotRendering` tests

* test: remove redundant test suite

* test: stabilize plot legend color swatch test

* docs: mention `waitForPlotsToLoad()` in e2e docs

* refactor: have getCanvasPixels return actual rgba values

* docs: fix typo

* test: use appAction and fix reload wait condition

* docs: add additional context for `waitForPlotsToRender()`

* refactor: one-liner

* docs: tidy up docs
2023-04-20 14:36:58 -07:00
..
example chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
planning chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
plugins refactor: add appActions and stabilize overlayPlot and plotRendering e2e test suites (#6612) 2023-04-20 14:36:58 -07:00
branding.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
couchdb.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
forms.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
menu.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
moveAndLinkObjects.e2e.spec.js Update copyright date (#6395) 2023-03-06 21:58:18 +04:00
notification.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
recentObjects.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
search.e2e.spec.js Improvements to reduce repainting (#5876) 2023-03-17 20:07:57 +00:00
smoke.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
tree.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00