mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
Add script to delete annotations (#7069)
* add script * add package.json and script to delete annotations * amend help * fix issues * added explicit runs * add design document and index creation to script * update tests to wait for url to change * i think we can remove this deprecated function now
This commit is contained in:
@ -263,7 +263,10 @@ test.describe('Display Layout', () => {
|
||||
await setFixedTimeMode(page);
|
||||
// Create another Sine Wave Generator
|
||||
const anotherSineWaveObject = await createDomainObjectWithDefaults(page, {
|
||||
type: 'Sine Wave Generator'
|
||||
type: 'Sine Wave Generator',
|
||||
customParameters: {
|
||||
'[aria-label="Data Rate (hz)"]': '0.01'
|
||||
}
|
||||
});
|
||||
// Create a Display Layout
|
||||
await createDomainObjectWithDefaults(page, {
|
||||
@ -306,7 +309,8 @@ test.describe('Display Layout', () => {
|
||||
// Time to inspect some network traffic
|
||||
let networkRequests = [];
|
||||
page.on('request', (request) => {
|
||||
const searchRequest = request.url().endsWith('_find');
|
||||
const searchRequest =
|
||||
request.url().endsWith('_find') || request.url().includes('by_keystring');
|
||||
const fetchRequest = request.resourceType() === 'fetch';
|
||||
if (searchRequest && fetchRequest) {
|
||||
networkRequests.push(request);
|
||||
@ -322,6 +326,7 @@ test.describe('Display Layout', () => {
|
||||
expect(networkRequests.length).toBe(1);
|
||||
|
||||
await setRealTimeMode(page);
|
||||
|
||||
networkRequests = [];
|
||||
|
||||
await page.reload();
|
||||
|
Reference in New Issue
Block a user