mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
User attribution (#5827)
* initial changes adding modified and created by fields to domain objects and updating properties inspector * adding created date to object creation * added a test for created timestamp * updating remove action to hold the transaction and disregard edit state when handling transactions, also updated object api to return transaction when starting and ignore edit state when determining if transaction is active * updating docs for object api "startTransaction" * updating incorrect use of edit and transaction in our appActions for testing Co-authored-by: Andrew Henry <akhenry@gmail.com> Co-authored-by: Shefali <simplyrender@gmail.com>
This commit is contained in:
@ -225,15 +225,14 @@ async function getHashUrlToDomainObject(page, uuid) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Utilizes the OpenMCT API to detect if the given object has an active transaction (is in Edit mode).
|
||||
* Utilizes the OpenMCT API to detect if the UI is in Edit mode.
|
||||
* @private
|
||||
* @param {import('@playwright/test').Page} page
|
||||
* @param {string | import('../src/api/objects/ObjectAPI').Identifier} identifier
|
||||
* @return {Promise<boolean>} true if the object has an active transaction, false otherwise
|
||||
* @return {Promise<boolean>} true if the Open MCT is in Edit Mode
|
||||
*/
|
||||
async function _isInEditMode(page, identifier) {
|
||||
// eslint-disable-next-line no-return-await
|
||||
return await page.evaluate((objectIdentifier) => window.openmct.objects.isTransactionActive(objectIdentifier), identifier);
|
||||
return await page.evaluate(() => window.openmct.editor.isEditing());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user