mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 23:53:49 +00:00
If display bounds are out of sync with time conductor, don't purge data out of bounds (#7732)
* If we're paused, don't purge data out of bounds * Refactor auto scale utility functions for reuse * Create new test spec for plot controls * Move plot related actions into it's own file * Fix typo for imports * Remove named exposedFunction as it is causing errors when the method is used on the same page more than once. * Fix spelling
This commit is contained in:
@ -26,6 +26,7 @@ Testsuite for plot autoscale.
|
||||
|
||||
import { createDomainObjectWithDefaults } from '../../../../appActions.js';
|
||||
import { expect, test } from '../../../../pluginFixtures.js';
|
||||
import { setUserDefinedMinAndMax, turnOffAutoscale } from './plotActions.js';
|
||||
test.use({
|
||||
viewport: {
|
||||
width: 1280,
|
||||
@ -127,26 +128,6 @@ test.describe('Autoscale', () => {
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @param {import('@playwright/test').Page} page
|
||||
*/
|
||||
async function turnOffAutoscale(page) {
|
||||
// uncheck autoscale
|
||||
await page.getByRole('checkbox', { name: 'Auto scale' }).uncheck();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('@playwright/test').Page} page
|
||||
* @param {string} min
|
||||
* @param {string} max
|
||||
*/
|
||||
async function setUserDefinedMinAndMax(page, min, max) {
|
||||
// set minimum value
|
||||
await page.getByRole('spinbutton').first().fill(min);
|
||||
// set maximum value
|
||||
await page.getByRole('spinbutton').nth(1).fill(max);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('@playwright/test').Page} page
|
||||
*/
|
||||
|
Reference in New Issue
Block a user