From 544797c6a05d2393f3b655a55d5abd1d7d08711b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Mon, 18 Dec 2023 18:33:11 +0100 Subject: [PATCH] Create two override tests --- .hass/config/configuration.yaml | 10 +++-- .hass/config/ui-lovelace-exclude.yaml | 32 +-------------- .hass/config/ui-lovelace-include.yaml | 32 +-------------- .hass/config/ui-lovelace-override-after.yaml | 8 ++++ .hass/config/ui-lovelace-override-before.yaml | 8 ++++ .hass/config/ui-lovelace-override.yaml | 38 ------------------ .hass/config/ui-lovelace-position.yaml | 32 +-------------- .hass/config/ui-lovelace.yaml | 32 +-------------- .hass/config/views.yaml | 30 ++++++++++++++ package.json | 3 +- ...05-override.png => 05-override-before.png} | Bin .../chromium/06-override-after.png | Bin 0 -> 5655 bytes ...05-override.png => 05-override-before.png} | Bin .../firefox/06-override-after.png | Bin 0 -> 6507 bytes ...05-override.png => 05-override-before.png} | Bin .../webkit/06-override-after.png | Bin 0 -> 5470 bytes tests/main-options.spec.ts | 14 +++++-- 17 files changed, 70 insertions(+), 169 deletions(-) create mode 100644 .hass/config/ui-lovelace-override-after.yaml create mode 100644 .hass/config/ui-lovelace-override-before.yaml delete mode 100644 .hass/config/ui-lovelace-override.yaml create mode 100644 .hass/config/views.yaml rename test-snapshots/main-options.spec.ts/chromium/{05-override.png => 05-override-before.png} (100%) create mode 100644 test-snapshots/main-options.spec.ts/chromium/06-override-after.png rename test-snapshots/main-options.spec.ts/firefox/{05-override.png => 05-override-before.png} (100%) create mode 100644 test-snapshots/main-options.spec.ts/firefox/06-override-after.png rename test-snapshots/main-options.spec.ts/webkit/{05-override.png => 05-override-before.png} (100%) create mode 100644 test-snapshots/main-options.spec.ts/webkit/06-override-after.png diff --git a/.hass/config/configuration.yaml b/.hass/config/configuration.yaml index b1438e8..92df268 100644 --- a/.hass/config/configuration.yaml +++ b/.hass/config/configuration.yaml @@ -31,10 +31,14 @@ lovelace: mode: yaml title: Exclude filename: ui-lovelace-exclude.yaml - lovelace-override: + lovelace-override-before: mode: yaml - title: Override - filename: ui-lovelace-override.yaml + title: Override before + filename: ui-lovelace-override-before.yaml + lovelace-override-after: + mode: yaml + title: Override after + filename: ui-lovelace-override-after.yaml # Load frontend themes from the themes folder frontend: diff --git a/.hass/config/ui-lovelace-exclude.yaml b/.hass/config/ui-lovelace-exclude.yaml index 2fd0184..63e6dd1 100644 --- a/.hass/config/ui-lovelace-exclude.yaml +++ b/.hass/config/ui-lovelace-exclude.yaml @@ -4,34 +4,4 @@ keep_texts_in_tabs: - Windy - Planten title: Exclude -views: - - theme: Backend-selected - title: Home - icon: mdi:home - path: home - badges: [] - cards: [] - - theme: Backend-selected - title: Muziek - icon: mdi:music - path: muziek - badges: [] - cards: [] - - theme: Backend-selected - title: Windy - icon: mdi:weather-windy - path: windy - badges: [] - cards: [] - - theme: Backend-selected - title: Alarmen - icon: mdi:alarm - path: alarmen - badges: [] - cards: [] - - theme: Backend-selected - title: Planten - icon: mdi:flower - path: planten - badges: [] - cards: [] +views: !include views.yaml diff --git a/.hass/config/ui-lovelace-include.yaml b/.hass/config/ui-lovelace-include.yaml index 770f9fa..a5ae305 100644 --- a/.hass/config/ui-lovelace-include.yaml +++ b/.hass/config/ui-lovelace-include.yaml @@ -4,34 +4,4 @@ keep_texts_in_tabs: - Muziek - Alarmen title: Include -views: - - theme: Backend-selected - title: Home - icon: mdi:home - path: home - badges: [] - cards: [] - - theme: Backend-selected - title: Muziek - icon: mdi:music - path: muziek - badges: [] - cards: [] - - theme: Backend-selected - title: Windy - icon: mdi:weather-windy - path: windy - badges: [] - cards: [] - - theme: Backend-selected - title: Alarmen - icon: mdi:alarm - path: alarmen - badges: [] - cards: [] - - theme: Backend-selected - title: Planten - icon: mdi:flower - path: planten - badges: [] - cards: [] +views: !include views.yaml diff --git a/.hass/config/ui-lovelace-override-after.yaml b/.hass/config/ui-lovelace-override-after.yaml new file mode 100644 index 0000000..5665b12 --- /dev/null +++ b/.hass/config/ui-lovelace-override-after.yaml @@ -0,0 +1,8 @@ +keep_texts_in_tabs: + enabled: true + position: after + override: + - Muziek + - Planten +title: Override After +views: !include views.yaml diff --git a/.hass/config/ui-lovelace-override-before.yaml b/.hass/config/ui-lovelace-override-before.yaml new file mode 100644 index 0000000..ace3881 --- /dev/null +++ b/.hass/config/ui-lovelace-override-before.yaml @@ -0,0 +1,8 @@ +keep_texts_in_tabs: + enabled: true + position: before + override: + - Muziek + - Planten +title: Override Before +views: !include views.yaml diff --git a/.hass/config/ui-lovelace-override.yaml b/.hass/config/ui-lovelace-override.yaml deleted file mode 100644 index c023533..0000000 --- a/.hass/config/ui-lovelace-override.yaml +++ /dev/null @@ -1,38 +0,0 @@ -keep_texts_in_tabs: - enabled: true - position: before - override: - - Muziek - - Planten -title: Override -views: - - theme: Backend-selected - title: Home - icon: mdi:home - path: home - badges: [] - cards: [] - - theme: Backend-selected - title: Muziek - icon: mdi:music - path: muziek - badges: [] - cards: [] - - theme: Backend-selected - title: Windy - icon: mdi:weather-windy - path: windy - badges: [] - cards: [] - - theme: Backend-selected - title: Alarmen - icon: mdi:alarm - path: alarmen - badges: [] - cards: [] - - theme: Backend-selected - title: Planten - icon: mdi:flower - path: planten - badges: [] - cards: [] diff --git a/.hass/config/ui-lovelace-position.yaml b/.hass/config/ui-lovelace-position.yaml index 52b4c06..095cf27 100644 --- a/.hass/config/ui-lovelace-position.yaml +++ b/.hass/config/ui-lovelace-position.yaml @@ -2,34 +2,4 @@ keep_texts_in_tabs: enabled: true position: before title: Position -views: - - theme: Backend-selected - title: Home - icon: mdi:home - path: home - badges: [] - cards: [] - - theme: Backend-selected - title: Muziek - icon: mdi:music - path: muziek - badges: [] - cards: [] - - theme: Backend-selected - title: Windy - icon: mdi:weather-windy - path: windy - badges: [] - cards: [] - - theme: Backend-selected - title: Alarmen - icon: mdi:alarm - path: alarmen - badges: [] - cards: [] - - theme: Backend-selected - title: Planten - icon: mdi:flower - path: planten - badges: [] - cards: [] +views: !include views.yaml diff --git a/.hass/config/ui-lovelace.yaml b/.hass/config/ui-lovelace.yaml index be087e1..7bb3ef1 100644 --- a/.hass/config/ui-lovelace.yaml +++ b/.hass/config/ui-lovelace.yaml @@ -4,34 +4,4 @@ keep_texts_in_tabs: enabled: true position: before title: Keep Text in Tabs -views: - - theme: Backend-selected - title: Home - icon: mdi:home - path: home - badges: [] - cards: [] - - theme: Backend-selected - title: Muziek - icon: mdi:music - path: muziek - badges: [] - cards: [] - - theme: Backend-selected - title: Windy - icon: mdi:weather-windy - path: windy - badges: [] - cards: [] - - theme: Backend-selected - title: Alarmen - icon: mdi:alarm - path: alarmen - badges: [] - cards: [] - - theme: Backend-selected - title: Planten - icon: mdi:flower - path: planten - badges: [] - cards: [] +views: !include views.yaml diff --git a/.hass/config/views.yaml b/.hass/config/views.yaml new file mode 100644 index 0000000..95a43aa --- /dev/null +++ b/.hass/config/views.yaml @@ -0,0 +1,30 @@ +- theme: Backend-selected + title: Home + icon: mdi:home + path: home + badges: [] + cards: [] +- theme: Backend-selected + title: Muziek + icon: mdi:music + path: muziek + badges: [] + cards: [] +- theme: Backend-selected + title: Windy + icon: mdi:weather-windy + path: windy + badges: [] + cards: [] +- theme: Backend-selected + title: Alarmen + icon: mdi:alarm + path: alarmen + badges: [] + cards: [] +- theme: Backend-selected + title: Planten + icon: mdi:flower + path: planten + badges: [] + cards: [] \ No newline at end of file diff --git a/package.json b/package.json index ad40c92..7cc4cb2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "license": "Apache-2.0", "private": false, "scripts": { - "build": "rollup --config rollup.config.js --bundleConfigAsCjs", + "build": "yarn test:clean && rollup --config rollup.config.js --bundleConfigAsCjs", + "test:clean": "rm -rf dist .nyc_output coverage || true", "test:all": "yarn test:ts && yarn test:ci", "test:ci": "yarn demo && yarn start:playwright && yarn stop:ha", "test:run": "dotenv playwright test", diff --git a/test-snapshots/main-options.spec.ts/chromium/05-override.png b/test-snapshots/main-options.spec.ts/chromium/05-override-before.png similarity index 100% rename from test-snapshots/main-options.spec.ts/chromium/05-override.png rename to test-snapshots/main-options.spec.ts/chromium/05-override-before.png diff --git a/test-snapshots/main-options.spec.ts/chromium/06-override-after.png b/test-snapshots/main-options.spec.ts/chromium/06-override-after.png new file mode 100644 index 0000000000000000000000000000000000000000..17754a1283ffba3a95a71df28d296287dee2ee29 GIT binary patch literal 5655 zcmb_gXH*kPx8+{0AV@%^C|!zlkQyL>5kU}vp!6=igP{{?S5TusKRZ@oX$=d3knX7)a3e|!$n1kke4QczF;w4SQ#Q&9ZPPHrn) zry`ez|AOeq)nC5)nvW^UaU2^I6wISq>Z*o8>BM>_tr%@xXMXHv_2}l@zuyG@`n&p{ z>I!}tUmR?g+gZSYH9pNjfaW9w%zb%}&KU zjSm>qKkSdmV^4)>faL!5&(Cjr{8_@A!#_pt@~A)7s{FI#!`pZpwLcRy_dDPJnYjHd z0`MPGiT_sv{oA{YWW$&7ZjTd~uZC&8iyLddVdORMQYg0%tnGiddHhvVn*H%%f=5NK z6~6VHl*oVS?dvIOGd9BlG-Btty-!lp+$)1(R5KY4 zLdf;!N>DlLuPn@PvSZ5;*ig3n+jD0^*c!*N8PIiABm9ljvU2%B z4d18=x}kw&;&+!di%K|{p}sR9!l@5Hc^q+x?_m<; zB&=5jfATNQcAI>rihzh&Q8>{mBhyjxRdHv;Y8YEY+pftnmq-5H zz5aCmwG~!0*h2EV12n$(yg+qhu3%w?bSZ9inf8iV-gtkBH3z$^H$X(ClOY zlN!#ZF&5%$^heSnb-vX1mX_=J+R~-Ei8{Lr94k#$K$DpLz1?>iB8)}!6N>(oxNw9F z%&uj~lRY9)RwPUk=kVfgu4Gyx7& z0m+N}%ICZRz=IIBSLx|vznw-V(v>3}i|+eQoQWHrFl4|Z?%rKUWwdS0p}c`W1L)Z| zIdSX@r;9w@2ec@&CaTGbUj_@gL9aD#zY`vD=}b`a00I>}%6ye3KC)6J;N>Jl4xxQQ zk!DRGc@}CRS7>ACm$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_y6S+mx zai$){fm0Ltjg=iMceWzN-Y!6gxozW#<3UjEGn@p+H}DI${ZhU*o&J#^^kCs!#qYLG zKfzYR%~chkNi0bcq-zg*r>py@j_NkWnK{#6tB~vN?v_ZF-+>MKR=^odw;zJwS#6GA zY^$qUuyxN{x{SXkQ|({Q;ePO<4qrkU$Dge8Bp>3F-NgIGETg_2s31GTwvN~vv1!td zq(LkE?uAljmFIFjET$2M$n_!kDQ^_W!v(tbJktMHRCq1To{Bn9mW=*-M|hErcalydHU=}Q$8X_hLRqr&RjZoRG&!JieT8wEpSsZo%9hprdfCyu z(Q*b-vcf)su9{O($Izn3_IR0Uxdrh+a~VVKNd=ipzr!(JK!hn4k|K+yr2IdFb)s0^jMqJ|%mE>fC?Ah4ii589t%dDLl9ZQ@a%ZwU<4 zSz#Bl?B<>G(3_9^f<0>M>L;8u>ZiRn=8qo=ukFJ#8 zEd0Z6`-)i8GH0*Wz1H$Xz$8WrR?)Rs^374&$7p zi5KS580;E*9%bR2)SBsc%Ob^s-@WMIi1JTPB_*;pq`m<%#XYk|2lD@jQaCcX3*h zJM?&zh2& z%ayu-D6xtOFN2D9j|P}R?4Q%{P-PE9=}3r4dXK$P0p@1h6S0#Q(6u)%?;NAc;FIx> zh;2!{B)^?iX8Ktq)n&H{kKL_uQUczeR$ngO4-u~sc)YDX2Kyg%lJd}G{f`W}1m*ev z(jouXLZ<68;cx(o61Hvplc#>$&}8rI$kM2}Hg8u}#E( E0phYJcmMzZ literal 0 HcmV?d00001 diff --git a/test-snapshots/main-options.spec.ts/firefox/05-override.png b/test-snapshots/main-options.spec.ts/firefox/05-override-before.png similarity index 100% rename from test-snapshots/main-options.spec.ts/firefox/05-override.png rename to test-snapshots/main-options.spec.ts/firefox/05-override-before.png diff --git a/test-snapshots/main-options.spec.ts/firefox/06-override-after.png b/test-snapshots/main-options.spec.ts/firefox/06-override-after.png new file mode 100644 index 0000000000000000000000000000000000000000..9f6992adc2c04799258f1cf5acd48064dbfa450d GIT binary pat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DjB7$lW61g3J5>hY^Qu_nVO_PQ`QUA8(!46+D% zm7ud&aN~xW{cFgZwS0B5p%9R|--e+-=rPU*UOHVe4S{P4X5B1Q2atuw_1(65%-FSW zVbfztT*cvE1V0ZIgQ`|XjcVtCiGrtNXAf&O742YnVZVbh`WL$ zC?0=02jk+fenVJ&zl18He-Vs)gdnl7xo1w@vQ|^Cvm-M4t7Imv7=zq6e(hKAev456 zQ%F#VeMWKcPZX|#{{h(S33o_4O0R&-@*gf9MRZ5Xi$sm2bpK(?tSfi4IqCxU_rZhz z67|s1zaTdMj`J`kO_J1V`H0b~U literal 0 HcmV?d00001 diff --git a/test-snapshots/main-options.spec.ts/webkit/05-override.png b/test-snapshots/main-options.spec.ts/webkit/05-override-before.png similarity index 100% rename from test-snapshots/main-options.spec.ts/webkit/05-override.png rename to test-snapshots/main-options.spec.ts/webkit/05-override-before.png diff --git a/test-snapshots/main-options.spec.ts/webkit/06-override-after.png b/test-snapshots/main-options.spec.ts/webkit/06-override-after.png new file mode 100644 index 0000000000000000000000000000000000000000..6a528b051c2fdb5cb0233a3f4ad1880cf352c67e GIT binary patch literal 5470 zcmcIo^;gtEzy6{$0tzZADJ)A$EGdm34ND71mrHkd3jz|-Ah5tv(kQhm-2&3xNG%OZ z-hJP5|AG6%J#)^?=S-gY)I9UVXs9U=6H*fb06?txRt^dP4`?v5F#ZEfJ-1qEh-q-m zl@;WG`~Q^uwvuE3ct)-$C#~(By}#h&tvxXV9A0F*p>i@_CdXGKhF4>gVUtbPf;G~5 z;Fa$pCS$JxD!GjRPL?$&Atf5Q12pn<_oCkAn~#<_(mN~|T0MI@^T13ok&7`rQJjBf zi+jsIXx@@f(OT7U+CNDBj=}6;u+8QN$^iBF+?t3X{ISeKd7g6ujL^Zk6DzlTR9F^evRo(oB`OsAYM`bTjl%2hHxWExnhNfZ#d#6| zycW@PdF8#F-(S;i0;YY`Eo}Fmb0{8;K04jZc|mcBT|jvgP|T&vy7}z{I=znVdrgtM zL&9m9SejU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6A4W6Ca5U9ul3W-t!nMR*CS@}e^712Ui9!Z2xoArS&XPc zJtwJ9dejO=t(xQn7_6a=XDbkQtj zZ*m>)e+fVNpj_@449j;G@&7^t{x5gI5-T|52KKGb0oLgeA@IQQG_x(ew X0VPHr9CKC-VG1a|QIo5ZF%A76Flv>O literal 0 HcmV?d00001 diff --git a/tests/main-options.spec.ts b/tests/main-options.spec.ts index ab97468..f9c2497 100644 --- a/tests/main-options.spec.ts +++ b/tests/main-options.spec.ts @@ -44,12 +44,20 @@ test('Option: exclude', async ({ page }) => { await expect(page.locator(TABS_CONTENT_SELECTOR)).toHaveScreenshot('04-exclude.png'); }); -test('Option: override', async ({ page }) => { +test('Option: override before', async ({ page }) => { await page.goto( - getLovelaceUrl('override') + getLovelaceUrl('override-before') ); await expect(page.locator(HEADER_SELECTOR)).toBeVisible(); - await expect(page.locator(TABS_CONTENT_SELECTOR)).toHaveScreenshot('05-override.png'); + await expect(page.locator(TABS_CONTENT_SELECTOR)).toHaveScreenshot('05-override-before.png'); +}); + +test('Option: override after', async ({ page }) => { + await page.goto( + getLovelaceUrl('override-after') + ); + await expect(page.locator(HEADER_SELECTOR)).toBeVisible(); + await expect(page.locator(TABS_CONTENT_SELECTOR)).toHaveScreenshot('06-override-after.png'); }); test.describe('Small viewport', () => {