From 3c9b9a0699e1305788b1744abbb128fee1244c84 Mon Sep 17 00:00:00 2001 From: Mario Castigliano Date: Fri, 5 Apr 2024 10:26:33 +0200 Subject: [PATCH] fix: tests --- .../__snapshots__/checkbox-panel.spec.snap.js | 33 +++++++++++++++++++ .../radio-button-group.spec.snap.js | 10 ++++++ .../radio-button-panel.spec.snap.js | 16 +++++++++ .../selection-expansion-panel.spec.snap.js | 28 ++++++++++++++++ 4 files changed, 87 insertions(+) diff --git a/src/components/checkbox/checkbox-panel/__snapshots__/checkbox-panel.spec.snap.js b/src/components/checkbox/checkbox-panel/__snapshots__/checkbox-panel.spec.snap.js index 7dc1e868736..e4fc3d68197 100644 --- a/src/components/checkbox/checkbox-panel/__snapshots__/checkbox-panel.spec.snap.js +++ b/src/components/checkbox/checkbox-panel/__snapshots__/checkbox-panel.spec.snap.js @@ -203,3 +203,36 @@ snapshots["sbb-checkbox-panel Checked - A11y tree Chrome"] = `; /* end snapshot sbb-checkbox-panel Checked - A11y tree Chrome */ +snapshots["sbb-checkbox-panel Unchecked - A11y tree Firefox"] = +`

+ { + "role": "document", + "name": "", + "children": [ + { + "role": "checkbox", + "name": "​ Label" + } + ] +} +

+`; +/* end snapshot sbb-checkbox-panel Unchecked - A11y tree Firefox */ + +snapshots["sbb-checkbox-panel Checked - A11y tree Firefox"] = +`

+ { + "role": "document", + "name": "", + "children": [ + { + "role": "checkbox", + "name": "​ Label", + "checked": true + } + ] +} +

+`; +/* end snapshot sbb-checkbox-panel Checked - A11y tree Firefox */ + diff --git a/src/components/radio-button/radio-button-group/__snapshots__/radio-button-group.spec.snap.js b/src/components/radio-button/radio-button-group/__snapshots__/radio-button-group.spec.snap.js index bfcccf0f0d4..5676617c1fd 100644 --- a/src/components/radio-button/radio-button-group/__snapshots__/radio-button-group.spec.snap.js +++ b/src/components/radio-button/radio-button-group/__snapshots__/radio-button-group.spec.snap.js @@ -32,3 +32,13 @@ snapshots["sbb-radio-button-group A11y tree Chrome"] = `; /* end snapshot sbb-radio-button-group A11y tree Chrome */ +snapshots["sbb-radio-button-group A11y tree Firefox"] = +`

+ { + "role": "document", + "name": "" +} +

+`; +/* end snapshot sbb-radio-button-group A11y tree Firefox */ + diff --git a/src/components/radio-button/radio-button-panel/__snapshots__/radio-button-panel.spec.snap.js b/src/components/radio-button/radio-button-panel/__snapshots__/radio-button-panel.spec.snap.js index 59333daebd0..be3d5c01558 100644 --- a/src/components/radio-button/radio-button-panel/__snapshots__/radio-button-panel.spec.snap.js +++ b/src/components/radio-button/radio-button-panel/__snapshots__/radio-button-panel.spec.snap.js @@ -98,3 +98,19 @@ snapshots["sbb-radio-button-panel A11y tree Chrome"] = `; /* end snapshot sbb-radio-button-panel A11y tree Chrome */ +snapshots["sbb-radio-button-panel A11y tree Firefox"] = +`

+ { + "role": "document", + "name": "", + "children": [ + { + "role": "radio", + "name": "Label Suffix Subtext" + } + ] +} +

+`; +/* end snapshot sbb-radio-button-panel A11y tree Firefox */ + diff --git a/src/components/selection-expansion-panel/__snapshots__/selection-expansion-panel.spec.snap.js b/src/components/selection-expansion-panel/__snapshots__/selection-expansion-panel.spec.snap.js index b0e3de0ea81..5b9496c1622 100644 --- a/src/components/selection-expansion-panel/__snapshots__/selection-expansion-panel.spec.snap.js +++ b/src/components/selection-expansion-panel/__snapshots__/selection-expansion-panel.spec.snap.js @@ -237,3 +237,31 @@ snapshots["sbb-selection-expansion-panel A11y tree Chrome"] = `; /* end snapshot sbb-selection-expansion-panel A11y tree Chrome */ +snapshots["sbb-selection-expansion-panel A11y tree Firefox"] = +`

+ { + "role": "document", + "name": "", + "children": [ + { + "role": "text leaf", + "name": "%" + }, + { + "role": "text leaf", + "name": "from CHF" + }, + { + "role": "text leaf", + "name": "19.99" + }, + { + "role": "checkbox", + "name": "​ Value one Suffix Subtext , collapsed" + } + ] +} +

+`; +/* end snapshot sbb-selection-expansion-panel A11y tree Firefox */ +