Stabilise React useId values in DOM snapshots in element-web (#33579)

* Stabilise React useId values in DOM snapshots - app/web

* Stabilise React useId values in DOM snapshots - shared components

* Update additional snapshots

* Added comments and changed replace pattern to 'react-use-id-N'
This commit is contained in:
rbondesson
2026-05-21 13:30:05 +01:00
committed by GitHub
parent 7ce368537b
commit 80024991aa
95 changed files with 1247 additions and 1173 deletions
@@ -27,7 +27,7 @@ exports[`<Notifications /> correctly handles the loading/disabled state 1`] = `
checked=""
class="_input_udcm8_24"
disabled=""
id="_r_1f_"
id="react-use-id-1"
role="switch"
type="checkbox"
/>
@@ -41,7 +41,7 @@ exports[`<Notifications /> correctly handles the loading/disabled state 1`] = `
>
<label
class="_label_19upo_59"
for="_r_1f_"
for="react-use-id-1"
>
Enable notifications for this account
</label>
@@ -786,7 +786,7 @@ exports[`<Notifications /> correctly handles the loading/disabled state 1`] = `
class="_container_153f2_10"
>
<input
aria-describedby="_r_2g_"
aria-describedby="react-use-id-2"
checked=""
class="_input_153f2_18"
disabled=""
@@ -826,7 +826,7 @@ exports[`<Notifications /> correctly handles the loading/disabled state 1`] = `
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
id="_r_2g_"
id="react-use-id-2"
>
Enter keywords here, or use for spelling variations or nicknames
</span>
@@ -1051,7 +1051,7 @@ exports[`<Notifications /> matches the snapshot 1`] = `
<input
checked=""
class="_input_udcm8_24"
id="_r_0_"
id="react-use-id-1"
role="switch"
type="checkbox"
/>
@@ -1065,7 +1065,7 @@ exports[`<Notifications /> matches the snapshot 1`] = `
>
<label
class="_label_19upo_59"
for="_r_0_"
for="react-use-id-1"
>
Enable notifications for this account
</label>
@@ -1799,7 +1799,7 @@ exports[`<Notifications /> matches the snapshot 1`] = `
class="_container_153f2_10"
>
<input
aria-describedby="_r_11_"
aria-describedby="react-use-id-2"
checked=""
class="_input_153f2_18"
id="checkbox_SwicmKUiOB"
@@ -1838,7 +1838,7 @@ exports[`<Notifications /> matches the snapshot 1`] = `
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
id="_r_11_"
id="react-use-id-2"
>
Enter keywords here, or use for spelling variations or nicknames
</span>