From 7edd55197e611ef7d2e7a333eea1bda30bd04cc0 Mon Sep 17 00:00:00 2001 From: Steffen van den Driest <35229971+Stef3st@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:47:49 +0100 Subject: [PATCH] chore: add await in front of snapshot comparison (#1395) * chore: add await in front of snapshot comparison Signed-off-by: Stef3st * chore: fix integration snapshots (#1396) Signed-off-by: Stef3st --------- Signed-off-by: Stef3st --- .../__snapshots__/Cleanup.test.snap.js | 118 -- .../GooseSubscriberLaterBinding.test.snap.js | 156 --- .../SMVSubscriberLaterBinding.test.snap.js | 1043 ----------------- .../datasets-container.test.snap.js | 126 -- .../services-wizard.test.snap.js | 975 +++++++-------- .../wizards/services-wizard.test.ts | 8 +- packages/open-scd/test/unit/Setting.test.ts | 4 +- .../unit/__snapshots__/Setting.test.snap.js | 86 +- .../__snapshots__/action-pane.test.snap.js | 6 +- .../open-scd/test/unit/action-pane.test.ts | 8 +- .../__snapshots__/do-container.test.snap.js | 76 +- .../__snapshots__/ln-container.test.snap.js | 48 - .../unit/editors/ied/da-container.test.ts | 10 +- .../unit/editors/ied/do-container.test.ts | 8 +- .../unit/editors/ied/ln-container.test.ts | 8 +- .../__snapshots__/selectDoi.test.snap.js | 32 - .../__snapshots__/sld-drawing.test.snap.js | 24 +- .../singlelinediagram/sld-drawing.test.ts | 42 +- .../goose/__snapshots__/ied-list.test.snap.js | 64 - .../__snapshots__/ied-list.test.snap.js | 64 - .../open-scd/test/unit/wizard-dialog.test.ts | 2 +- .../wizards/__snapshots__/dai.test.snap.js | 86 -- .../generalequipment.test.snap.js | 14 +- .../__snapshots__/sub-equipment.test.snap.js | 16 +- .../test/unit/wizards/eqsubfunction.test.ts | 2 +- 25 files changed, 577 insertions(+), 2449 deletions(-) delete mode 100644 packages/open-scd/test/integration/editors/__snapshots__/Cleanup.test.snap.js delete mode 100644 packages/open-scd/test/unit/editors/protocol104/wizards/__snapshots__/selectDoi.test.snap.js delete mode 100644 packages/open-scd/test/unit/editors/subscription/goose/__snapshots__/ied-list.test.snap.js delete mode 100644 packages/open-scd/test/unit/editors/subscription/sampledvalues/__snapshots__/ied-list.test.snap.js diff --git a/packages/open-scd/test/integration/editors/__snapshots__/Cleanup.test.snap.js b/packages/open-scd/test/integration/editors/__snapshots__/Cleanup.test.snap.js deleted file mode 100644 index fce194476a..0000000000 --- a/packages/open-scd/test/integration/editors/__snapshots__/Cleanup.test.snap.js +++ /dev/null @@ -1,118 +0,0 @@ -/* @web/test-runner snapshot v1 */ -export const snapshots = {}; - -snapshots["Cleanup without a doc loaded looks like the latest snapshot"] = -`
-
-
-

- [cleanup.unreferencedDataSets.title] - (0) - - - - -

- - -
-
- - -
-
-
-
-

- [cleanup.unreferencedControls.title] - (0) - - - - -

- - -
-
- - - - - - -
-
-
- - -`; -/* end snapshot Cleanup without a doc loaded looks like the latest snapshot */ - -snapshots["Cleanup Datasets without a doc loaded looks like the latest snapshot"] = -`
-
-

- [cleanup.unreferencedDataSets.title] - (0) - - - - -

- - -
-
- - -
-
- - -`; -/* end snapshot Cleanup Datasets without a doc loaded looks like the latest snapshot */ - diff --git a/packages/open-scd/test/integration/editors/__snapshots__/GooseSubscriberLaterBinding.test.snap.js b/packages/open-scd/test/integration/editors/__snapshots__/GooseSubscriberLaterBinding.test.snap.js index e9da94df03..2259c7d83f 100644 --- a/packages/open-scd/test/integration/editors/__snapshots__/GooseSubscriberLaterBinding.test.snap.js +++ b/packages/open-scd/test/integration/editors/__snapshots__/GooseSubscriberLaterBinding.test.snap.js @@ -1,162 +1,6 @@ /* @web/test-runner snapshot v1 */ export const snapshots = {}; -snapshots["GOOSE Subscribe Later Binding Plugin when selecting the first FCDA element it looks like the latest snapshot"] = -`
-

- [subscription.laterBinding.extRefList.title] -

- - - - [subscription.subscriber.subscribed] - - -
  • -
  • - - - Pos;CSWI1/Pos/stVal - (Interlocking.Input2) - - - GOOSE_Subscriber>>Earth_Switch> CSWI 1 - - - swap_horiz - - - - - [subscription.subscriber.availableToSubscribe] - - -
  • -
  • - - - Pos;CSWI1/Pos/stVal - (Interlocking.Input) - - - GOOSE_Subscriber>>Earth_Switch> CILO 1 - - - arrow_back - - - - - Pos;CILO/EnaCls/stVal - (Interlocking.Input3) - - - GOOSE_Subscriber>>Earth_Switch> CILO 1 - - - arrow_back - - - - - Pos;CILO/EnaOpn2/stVal - (Interlocking.Input4) - - - GOOSE_Subscriber>>Earth_Switch> CILO 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To Pos) - - - GOOSE_Subscriber>>Earth_Switch> CSWI 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To Pos) - - - GOOSE_Subscriber>>Earth_Switch> CSWI 1 - - - arrow_back - - -
    -
    -`; -/* end snapshot GOOSE Subscribe Later Binding Plugin when selecting the first FCDA element it looks like the latest snapshot */ - snapshots["GOOSE Subscribe Later Binding Plugin when selecting an FCDA element with subscriptions it looks like the latest snapshot"] = `

    diff --git a/packages/open-scd/test/integration/editors/__snapshots__/SMVSubscriberLaterBinding.test.snap.js b/packages/open-scd/test/integration/editors/__snapshots__/SMVSubscriberLaterBinding.test.snap.js index 08489396a6..a42a74b914 100644 --- a/packages/open-scd/test/integration/editors/__snapshots__/SMVSubscriberLaterBinding.test.snap.js +++ b/packages/open-scd/test/integration/editors/__snapshots__/SMVSubscriberLaterBinding.test.snap.js @@ -1,1049 +1,6 @@ /* @web/test-runner snapshot v1 */ export const snapshots = {}; -snapshots["SMV Subscribe Later Binding plugin when selecting the first FCDA element it looks like the latest snapshot"] = -`
    -

    - [subscription.laterBinding.extRefList.title] -

    - - - - [subscription.subscriber.subscribed] - - -
  • -
  • - - - AmpSv;TCTR1/AmpSv/instMag.i - (MeasPoint.CT1) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 (SMV_Subscriber2>>SV_supervision> LSVS 1) - - - swap_horiz - - - monitor_heart - - - - - AmpSv;TCTR1/AmpSv/instMag.i - (MeasPoint.CT1) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 (SMV_Subscriber4>>SV_supervision> LSVS 1) - - - swap_horiz - - - monitor_heart - - - - - [subscription.subscriber.availableToSubscribe] - - -
  • -
  • - - - AmpSv;TCTR1/AmpSv/instMag.i - (MeasPoint.CT1) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR1/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/instMag.i - (MeasPoint.CT2) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/instMag.i - (MeasPoint.CT3) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber>>Overvoltage> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/instMag.i - (MeasPoint.VT1) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/instMag.i - (MeasPoint.VT2) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/instMag.i - (MeasPoint.VT3) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To AmpSV) - - - SMV_Subscriber>>Overcurrent> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR1/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/instMag.i - (MeasPoint.CT2) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/instMag.i - (MeasPoint.CT3) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber2>>Overvoltage> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/instMag.i - (MeasPoint.VT1) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/instMag.i - (MeasPoint.VT2) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/instMag.i - (MeasPoint.VT3) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To AmpSV) - - - SMV_Subscriber2>>Overcurrent> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR1/AmpSv/instMag.i - (MeasPoint.CT1) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR1/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/instMag.i - (MeasPoint.CT2) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/instMag.i - (MeasPoint.CT3) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber3>>Overvoltage> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/instMag.i - (MeasPoint.VT1) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/instMag.i - (MeasPoint.VT2) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/instMag.i - (MeasPoint.VT3) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To AmpSV) - - - SMV_Subscriber3>>Overcurrent> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR1/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/instMag.i - (MeasPoint.CT2) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR2/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/instMag.i - (MeasPoint.CT3) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 - - - arrow_back - - - - - AmpSv;TCTR3/AmpSv/q - (MeasPoint.CT1) - - - SMV_Subscriber4>>Overvoltage> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/instMag.i - (MeasPoint.VT1) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR1/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/instMag.i - (MeasPoint.VT2) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR2/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/instMag.i - (MeasPoint.VT3) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - VolSv;TVTR3/VolSv/q - (MeasPoint.VT1) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - - - - someRestrictedExtRef - (Restricted To AmpSV) - - - SMV_Subscriber4>>Overcurrent> PTRC 1 - - - arrow_back - - -
    -
    -`; -/* end snapshot SMV Subscribe Later Binding plugin when selecting the first FCDA element it looks like the latest snapshot */ - snapshots["SMV Subscribe Later Binding plugin when selecting an FCDA element with subscriptions it looks like the latest snapshot"] = `

    diff --git a/packages/open-scd/test/integration/editors/cleanup/__snapshots__/datasets-container.test.snap.js b/packages/open-scd/test/integration/editors/cleanup/__snapshots__/datasets-container.test.snap.js index e2a1410f95..73101cef5c 100644 --- a/packages/open-scd/test/integration/editors/cleanup/__snapshots__/datasets-container.test.snap.js +++ b/packages/open-scd/test/integration/editors/cleanup/__snapshots__/datasets-container.test.snap.js @@ -1,132 +1,6 @@ /* @web/test-runner snapshot v1 */ export const snapshots = {}; -snapshots["Cleanup: Datasets Container without a doc loaded looks like the latest snapshot"] = -`
    -
    -

    - [cleanup.unreferencedDataSets.title] - (0) - - - - -

    - - -
    -
    - - -
    -
    - - -`; -/* end snapshot Cleanup: Datasets Container without a doc loaded looks like the latest snapshot */ - -snapshots["Cleanup: Datasets Container With a test file loaded looks like the latest snapshot"] = -`
    -
    -

    - [cleanup.unreferencedDataSets.title] - (2) - - - - -

    - - - - GooseDataSet2 - - - - - - - IED1 - (DummyManufacturer) - - - DummyIED - - - - - PhsMeas2 - - - - - - - IED3 - (DummyManufacturer) - - - DummyIED - - - -
    -
    - - -
    -
    - - -`; -/* end snapshot Cleanup: Datasets Container With a test file loaded looks like the latest snapshot */ - snapshots["cleanup-editor integration: dataset removal without a doc loaded looks like the latest snapshot"] = `
    diff --git a/packages/open-scd/test/integration/wizards/__snapshots__/services-wizard.test.snap.js b/packages/open-scd/test/integration/wizards/__snapshots__/services-wizard.test.snap.js index cfc2507ef1..4c8936a9c2 100644 --- a/packages/open-scd/test/integration/wizards/__snapshots__/services-wizard.test.snap.js +++ b/packages/open-scd/test/integration/wizards/__snapshots__/services-wizard.test.snap.js @@ -1,7 +1,7 @@ /* @web/test-runner snapshot v1 */ export const snapshots = {}; -snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 2 should look like snapshot"] = +snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 1 should look like snapshot"] = ` + + + + + + + + `; -/* end snapshot Wizards for SCL element Services define a Services wizards Wizard 1 should look like snapshot */ +/* end snapshot Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 1 should look like snapshot */ -snapshots["Wizards for SCL element Services define a Services wizards Wizard 2 should look like snapshot"] = +snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 2 should look like snapshot"] = ` `; - /* end snapshot Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 3 should look like snapshot */ -snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 4 should look like snapshot"] = -` -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - -
    -`; -/* end snapshot Wizards for SCL element Services define a Services wizards Wizard 4 should look like snapshot */ -snapshots["Wizards for SCL element Services define a Services wizards Wizard 5 should look like snapshot"] = +snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 4 should look like snapshot"] = ` +
    @@ -1775,7 +1652,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: AccessPoint wiza -
    - - - + - + + +
    - - - - - - - + Conf + + + Fix + + + - - + Dyn + + + Conf + + + Fix + + + - - + Dyn + + + Conf + + + Fix + + + - - + Dyn + + + Conf + + + Fix + + + - + + Dyn + + + Conf + + + Fix + + - - + + + @@ -1901,7 +1891,6 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic - - - - - - - - - -
    - - + + `; /* end snapshot Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 1 should look like snapshot */ @@ -1974,9 +1942,15 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic ` +
    @@ -1986,15 +1960,20 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic nullable="" > Conf Fix @@ -2005,16 +1984,54 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic label="datSet" nullable="" > + + Dyn + + + Conf + + Fix + + + + Dyn Conf @@ -2022,6 +2039,7 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic Fix @@ -2029,19 +2047,57 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic + Dyn + + + Conf + + + Fix + + + + Dyn Conf @@ -2049,6 +2105,7 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic Fix @@ -2062,13 +2119,15 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic Dyn Conf @@ -2076,6 +2135,7 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic Fix @@ -2087,15 +2147,20 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic nullable="" > Dyn Conf @@ -2103,30 +2168,27 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic Fix - - - - - - + - +
    @@ -2495,8 +2564,15 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic ` +
    @@ -2643,8 +2719,15 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic ` +
    @@ -3002,157 +3085,83 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: define a Servic `; /* end snapshot Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 5 should look like snapshot */ -snapshots["Wizards for SCL element Services IED [WithServices2]: AccessPoint wizards for Scl element Services should look like snapshot"] = +snapshots["Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 6 should look like snapshot"] = ` +
    - - - Conf - - - Fix - - - + + + - - Dyn - - - Conf - - - Fix - - - + - - Dyn - - - Conf - - - Fix - - - + - - Dyn - - - Conf - - - Fix - - - + + + + + + + - - Dyn - - - Conf - - - Fix - - + - - - - + @@ -3160,62 +3169,77 @@ snapshots["Wizards for SCL element Services IED [WithServices2]: AccessPoint wiz - - + - - + + + + + +
    `; -/* end snapshot Wizards for SCL element Services IED [WithServices2]: AccessPoint wizards for Scl element Services should look like snapshot */ +/* end snapshot Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 6 should look like snapshot */ -snapshots["Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 1 should look like snapshot"] = +snapshots["Wizards for SCL element Services IED [WithServices2]: AccessPoint wizards for Scl element Services should look like snapshot"] = ` +
    @@ -3227,15 +3251,13 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service Conf Fix @@ -3247,20 +3269,15 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service nullable="" > Dyn Conf @@ -3268,7 +3285,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service Fix @@ -3280,20 +3296,15 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service nullable="" > Dyn Conf @@ -3301,7 +3312,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service Fix @@ -3313,20 +3323,15 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service nullable="" > Dyn Conf @@ -3334,7 +3339,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service Fix @@ -3346,20 +3350,15 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service nullable="" > Dyn Conf @@ -3367,7 +3366,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service Fix @@ -3394,7 +3392,6 @@ snapshots["Wizards for SCL element Services IED [WithServices]: define a Service `; -/* end snapshot Wizards for SCL element Services IED [WithServices]: define a Services wizards Wizard 1 should look like snapshot */ - -snapshots["Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 6 should look like snapshot"] = -` -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - -
    -`; -/* end snapshot Wizards for SCL element Services IED [WithServices2]: define a Services wizards Wizard 6 should look like snapshot */ +/* end snapshot Wizards for SCL element Services IED [WithServices2]: AccessPoint wizards for Scl element Services should look like snapshot */ diff --git a/packages/open-scd/test/integration/wizards/services-wizard.test.ts b/packages/open-scd/test/integration/wizards/services-wizard.test.ts index 9a3f79394e..877eceacc6 100644 --- a/packages/open-scd/test/integration/wizards/services-wizard.test.ts +++ b/packages/open-scd/test/integration/wizards/services-wizard.test.ts @@ -43,8 +43,8 @@ describe('Wizards for SCL element Services', () => { }); [0, 1, 2, 3, 4, 5].forEach(idx => { - it(`Wizard ${idx + 1} should look like snapshot`, () => { - expect(element.wizardUI.dialogs[idx]).to.equalSnapshot(); + it(`Wizard ${idx + 1} should look like snapshot`, async () => { + await expect(element.wizardUI.dialogs[idx]).to.equalSnapshot(); }); }); }); @@ -90,8 +90,8 @@ describe('Wizards for SCL element Services', () => { await element.requestUpdate(); }); - it('should look like snapshot', () => { - expect(element.wizardUI.dialog).to.equalSnapshot(); + it('should look like snapshot', async () => { + await expect(element.wizardUI.dialog).to.equalSnapshot(); }); }); }); diff --git a/packages/open-scd/test/unit/Setting.test.ts b/packages/open-scd/test/unit/Setting.test.ts index 5b6cfa2ed6..170ca854c2 100644 --- a/packages/open-scd/test/unit/Setting.test.ts +++ b/packages/open-scd/test/unit/Setting.test.ts @@ -63,7 +63,7 @@ describe('SettingElement', () => { await element.updateComplete; expect(localStorage.getItem('IEC 61850-7-2')).to.eql(nsdocFile); - expect(element).shadowDom.to.equalSnapshot(); + await expect(element).shadowDom.to.equalSnapshot(); }); it('deletes a chosen .nsdoc file and looks like latest snapshot', async () => { @@ -87,7 +87,7 @@ describe('SettingElement', () => { await element.updateComplete; expect(localStorage.getItem('IEC 61850-7-2')).to.equal(null); - expect(element).shadowDom.to.equalSnapshot(); + await expect(element).shadowDom.to.equalSnapshot(); }); }).afterAll(() => { registerTranslateConfig({ empty: key => `[${key}]` }); diff --git a/packages/open-scd/test/unit/__snapshots__/Setting.test.snap.js b/packages/open-scd/test/unit/__snapshots__/Setting.test.snap.js index f0746850ba..deee613a9b 100644 --- a/packages/open-scd/test/unit/__snapshots__/Setting.test.snap.js +++ b/packages/open-scd/test/unit/__snapshots__/Setting.test.snap.js @@ -50,26 +50,17 @@ snapshots["SettingElement saves chosen .nsdoc file and looks like latest snapsho - - + +
    -
    -

    - Load .nsdoc -

    - - -
    +

    + Uploaded NSDoc files +

    @@ -79,17 +70,22 @@ snapshots["SettingElement saves chosen .nsdoc file and looks like latest snapsho >
    - + IEC 61850-7-2 + + 2007B3 + IEC 61850-7-3 @@ -121,11 +120,14 @@ snapshots["SettingElement saves chosen .nsdoc file and looks like latest snapsho IEC 61850-7-4 @@ -138,11 +140,14 @@ snapshots["SettingElement saves chosen .nsdoc file and looks like latest snapsho IEC 61850-8-1 @@ -229,26 +234,17 @@ snapshots["SettingElement deletes a chosen .nsdoc file and looks like latest sna - - + +
    -
    -

    - Load .nsdoc -

    - - -
    +

    + Uploaded NSDoc files +

    @@ -258,15 +254,18 @@ snapshots["SettingElement deletes a chosen .nsdoc file and looks like latest sna >
    - + IEC 61850-7-2 @@ -279,11 +278,14 @@ snapshots["SettingElement deletes a chosen .nsdoc file and looks like latest sna IEC 61850-7-3 @@ -296,11 +298,14 @@ snapshots["SettingElement deletes a chosen .nsdoc file and looks like latest sna IEC 61850-7-4 @@ -313,11 +318,14 @@ snapshots["SettingElement deletes a chosen .nsdoc file and looks like latest sna IEC 61850-8-1 diff --git a/packages/open-scd/test/unit/__snapshots__/action-pane.test.snap.js b/packages/open-scd/test/unit/__snapshots__/action-pane.test.snap.js index 374f7295dd..6caeb3360c 100644 --- a/packages/open-scd/test/unit/__snapshots__/action-pane.test.snap.js +++ b/packages/open-scd/test/unit/__snapshots__/action-pane.test.snap.js @@ -3,11 +3,12 @@ export const snapshots = {}; snapshots["action-pane looks like the latest snapshot"] = `
    -

    +

    + test label