openmct/e2e/tests/functional/plugins/plot
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
..
autoscale.e2e.spec.js-snapshots Improvements to reduce repainting (#5876) 2023-03-17 20:07:57 +00:00
autoscale.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
logPlot.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
missingPlotObj.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
overlayPlot.e2e.spec.js refactor: add appActions and stabilize overlayPlot and plotRendering e2e test suites (#6612) 2023-04-20 14:36:58 -07:00
plotRendering.e2e.spec.js refactor: add appActions and stabilize overlayPlot and plotRendering e2e test suites (#6612) 2023-04-20 14:36:58 -07:00
scatterPlot.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
stackedPlot.e2e.spec.js chore: bump Playwright to v1.32.3 (#6511) 2023-04-18 22:32:29 +00:00
tagging.e2e.spec.js refactor: add appActions and stabilize overlayPlot and plotRendering e2e test suites (#6612) 2023-04-20 14:36:58 -07:00