mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
[Notebook] Dropping item into "drop area" in notebook not working (#5791)
* notebook embed visual test initial * waiting for createNewEmbed util function to finish before adding embed * removing debug code * adding unstable tag to visual test * added e2e embed tests for existing and new entriesupdated some test utils as well * removing test artifacts * removing more test artifacts * adding test data back in * removing debug code * adding back in test artifacts * updated test I broke * removing focused test * removing unsed variable * fix lint issues * adding unstable tag for new e2e tests
This commit is contained in:
@ -102,6 +102,17 @@ async function createDomainObjectWithDefaults(page, { type, name, parent = 'mine
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('@playwright/test').Page} page
|
||||
* @param {string} name
|
||||
*/
|
||||
async function expandTreePaneItemByName(page, name) {
|
||||
const treePane = page.locator('#tree-pane');
|
||||
const treeItem = treePane.locator(`role=treeitem[expanded=false][name=/${name}/]`);
|
||||
const expandTriangle = treeItem.locator('.c-disclosure-triangle');
|
||||
await expandTriangle.click();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a Plan object from JSON with the provided options.
|
||||
* @param {import('@playwright/test').Page} page
|
||||
@ -313,6 +324,7 @@ async function setEndOffset(page, offset) {
|
||||
// eslint-disable-next-line no-undef
|
||||
module.exports = {
|
||||
createDomainObjectWithDefaults,
|
||||
expandTreePaneItemByName,
|
||||
createPlanFromJSON,
|
||||
openObjectTreeContextMenu,
|
||||
getHashUrlToDomainObject,
|
||||
|
Reference in New Issue
Block a user