openmct/e2e/tests/functional
Jesse Mazzella d6e80447ab
Mutables for the Tree 🎄 + clean up TreeItem observers and mutables properly (#6032)
* fix: refresh object after conflict error

* fix: recover from error thrown during create

- Ensure that the "Saving" modal dialog is closed

- Notify user of the error, and also print to console to catch in e2e

* fix: default selector tree item to 'mine' folder

- If create fails due to a conflict or otherwise, and the user immediately tries to "Create" again, default the selector tree's selected item to the "mine" folder (which we know exists).

* fix: don't listen to composition if Selector Tree

* refactor: remove dead code

* fix: use MutableDomainObjects in the tree

- Only use mutables and observers if NOT a SelectorTree

- Properly clean up observers and mutables when a parent item is removed from the tree

* test: verify conflicts don't break object creation

* test: verify dialog closes and object is created

* refactor(e2e): update test

- Error notification on 'My Items' folder missing was removed, so don't check for it

* test: increase timeout

* refactor(e2e): use Promise.any()

* refactor(e2e): use Promise instead of polling

* test: add 2p annotation

* test: use `waitForRequest` instead of promise

- tidy up test, add comments describing our pattern

* docs(e2e): add best practices for network tests

* refactor(e2e): avoid using Promise.any

* fix: de-reactify observer and mutable maps

* fix: destroy by path on treeItem close

* fix: don't refresh for synchronized objects

* docs: fix a typo 🔥

* fix: remove existing mutable before adding

* fix: fail fast if these aren't functions

- Remove check for typeof 'function' to not hide any potential coding errors

* fix: walk up navigationPath if item not found

* chore: fix lint errors

* fix: parse conflicted object name correctly

* fix: re-throw conflict error

* fix: Cancel edit mode on conflict
2022-12-20 13:27:51 -08:00
..
example test(e2e): unique names for created objects by default (#5945) 2022-11-07 23:50:33 +00:00
planning Fix Independent Time Conductor for Plans within Time Strips (#5671) 2022-09-09 17:31:03 -07:00
plugins [Plots] Ignore Infinity when autoscaling y-axis (#5907) 2022-12-12 11:51:57 -08:00
branding.e2e.spec.js [e2e] More VIPER compatibility fixes (#5582) 2022-07-29 16:50:40 -07:00
couchdb.e2e.spec.js Mutables for the Tree 🎄 + clean up TreeItem observers and mutables properly (#6032) 2022-12-20 13:27:51 -08:00
forms.e2e.spec.js Mutables for the Tree 🎄 + clean up TreeItem observers and mutables properly (#6032) 2022-12-20 13:27:51 -08:00
menu.e2e.spec.js Fix Independent Time Conductor for Plans within Time Strips (#5671) 2022-09-09 17:31:03 -07:00
moveAndLinkObjects.e2e.spec.js test(e2e): unique names for created objects by default (#5945) 2022-11-07 23:50:33 +00:00
search.e2e.spec.js test(e2e): unique names for created objects by default (#5945) 2022-11-07 23:50:33 +00:00
smoke.e2e.spec.js [e2e] Refactor and document our extension of existing Playwright API and RFE features (#5537) 2022-07-27 14:31:18 -07:00
tree.e2e.spec.js Merge release/2.0.8 into master (#5709) 2022-08-24 11:08:17 -07:00