Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: include Safari for a11y snapshots #3227

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ snapshots["sbb-pearl-chain-vertical-item renders component with charcoal standar
`;
/* end snapshot sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet Shadow DOM */

snapshots["sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Chrome"] =
`<p>
{
"role": "WebArea",
"name": ""
}
</p>
`;
/* end snapshot sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Chrome */

snapshots["sbb-pearl-chain-vertical-item renders component with red line and bullet DOM"] =
`<sbb-pearl-chain-vertical-item>
</sbb-pearl-chain-vertical-item>
Expand Down Expand Up @@ -222,15 +232,15 @@ snapshots["sbb-pearl-chain-vertical-item renders a crossed-bullet Shadow DOM"] =
`;
/* end snapshot sbb-pearl-chain-vertical-item renders a crossed-bullet Shadow DOM */

snapshots["sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Chrome"] =
snapshots["sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": ""
}
</p>
`;
/* end snapshot sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Chrome */
/* end snapshot sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Safari */

snapshots["sbb-pearl-chain-vertical-item renders component with charcoal standard line and bullet A11y tree Firefox"] =
`<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ snapshots["sbb-pearl-chain-vertical renders A11y tree Chrome"] =
`;
/* end snapshot sbb-pearl-chain-vertical renders A11y tree Chrome */

snapshots["sbb-pearl-chain-vertical renders A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": ""
}
</p>
`;
/* end snapshot sbb-pearl-chain-vertical renders A11y tree Safari */

snapshots["sbb-pearl-chain-vertical renders A11y tree Firefox"] =
`<p>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@ snapshots["sbb-timetable-duration renders A11y tree Chrome"] =
`;
/* end snapshot sbb-timetable-duration renders A11y tree Chrome */

snapshots["sbb-timetable-duration renders A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "text",
"name": "3 Hours 12 Minutes."
}
]
}
</p>
`;
/* end snapshot sbb-timetable-duration renders A11y tree Safari */

snapshots["sbb-timetable-duration renders A11y tree Firefox"] =
`<p>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,62 @@ snapshots["sbb-timetable-row renders defaultTrip Shadow DOM"] =
`;
/* end snapshot sbb-timetable-row renders defaultTrip Shadow DOM */

snapshots["sbb-timetable-row renders defaultTrip A11y tree Chrome"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "button",
"name": "Departure: 11:08, Train, IR 37, Direction Basel SBB, Arrival: 12:13, Travel time 1 Hour 15 Minutes,"
},
{
"role": "text",
"name": "Train"
},
{
"role": "text",
"name": "  "
},
{
"role": "text",
"name": "Direction Basel SBB"
},
{
"role": "text",
"name": "Departure"
},
{
"role": "text",
"name": ": "
},
{
"role": "text",
"name": "11:08"
},
{
"role": "text",
"name": "Arrival"
},
{
"role": "text",
"name": ": "
},
{
"role": "text",
"name": "12:13"
},
{
"role": "text",
"name": "Travel time 1 Hour 15 Minutes"
}
]
}
</p>
`;
/* end snapshot sbb-timetable-row renders defaultTrip A11y tree Chrome */

snapshots["sbb-timetable-row renders platform DOM"] =
`<sbb-timetable-row role="rowgroup">
</sbb-timetable-row>
Expand Down Expand Up @@ -304,7 +360,7 @@ snapshots["sbb-timetable-row renders loading state Shadow DOM"] =
`;
/* end snapshot sbb-timetable-row renders loading state Shadow DOM */

snapshots["sbb-timetable-row renders defaultTrip A11y tree Chrome"] =
snapshots["sbb-timetable-row renders defaultTrip A11y tree Safari"] =
`<p>
{
"role": "WebArea",
Expand Down Expand Up @@ -358,7 +414,7 @@ snapshots["sbb-timetable-row renders defaultTrip A11y tree Chrome"] =
}
</p>
`;
/* end snapshot sbb-timetable-row renders defaultTrip A11y tree Chrome */
/* end snapshot sbb-timetable-row renders defaultTrip A11y tree Safari */

snapshots["sbb-timetable-row renders defaultTrip A11y tree Firefox"] =
`<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ snapshots["sbb-accordion renders Shadow DOM"] =
`;
/* end snapshot sbb-accordion renders Shadow DOM */

snapshots["sbb-accordion renders A11y tree Firefox"] =
`<p>
{
"role": "document",
"name": "",
"children": [
{
"role": "button",
"name": "Header 1"
},
{
"role": "button",
"name": "Header 2"
}
]
}
</p>
`;
/* end snapshot sbb-accordion renders A11y tree Firefox */

snapshots["sbb-accordion renders A11y tree Chrome"] =
`<p>
{
Expand All @@ -93,10 +113,10 @@ snapshots["sbb-accordion renders A11y tree Chrome"] =
`;
/* end snapshot sbb-accordion renders A11y tree Chrome */

snapshots["sbb-accordion renders A11y tree Firefox"] =
snapshots["sbb-accordion renders A11y tree Safari"] =
`<p>
{
"role": "document",
"role": "WebArea",
"name": "",
"children": [
{
Expand All @@ -111,5 +131,5 @@ snapshots["sbb-accordion renders A11y tree Firefox"] =
}
</p>
`;
/* end snapshot sbb-accordion renders A11y tree Firefox */
/* end snapshot sbb-accordion renders A11y tree Safari */

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,32 @@ snapshots["sbb-action-group renders renders A11y tree Chrome"] =
`;
/* end snapshot sbb-action-group renders renders A11y tree Chrome */

snapshots["sbb-action-group renders renders A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "button",
"name": "Button"
},
{
"role": "link",
"name": "Link",
"children": [
{
"role": "text",
"name": "Link"
}
]
}
]
}
</p>
`;
/* end snapshot sbb-action-group renders renders A11y tree Safari */

snapshots["sbb-action-group renders renders A11y tree Firefox"] =
`<p>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,40 @@ snapshots["sbb-alert-group renders Shadow DOM"] =
`;
/* end snapshot sbb-alert-group renders Shadow DOM */

snapshots["sbb-alert-group renders A11y tree Chrome"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "heading",
"name": "Disruptions",
"level": 3
},
{
"role": "heading",
"name": "Interruption between Genève and Lausanne",
"level": 3
},
{
"role": "text",
"name": "The rail traffic between Allaman and Morges is interrupted. All trains are cancelled. "
},
{
"role": "link",
"name": "Find out more"
},
{
"role": "button",
"name": "Close message"
}
]
}
</p>
`;
/* end snapshot sbb-alert-group renders A11y tree Chrome */

snapshots["sbb-alert-group renders with slotted DOM"] =
`<sbb-alert-group
accessibility-title-level="3"
Expand Down Expand Up @@ -66,7 +100,7 @@ snapshots["sbb-alert-group renders with slotted Shadow DOM"] =
`;
/* end snapshot sbb-alert-group renders with slotted Shadow DOM */

snapshots["sbb-alert-group renders A11y tree Chrome"] =
snapshots["sbb-alert-group renders A11y tree Safari"] =
`<p>
{
"role": "WebArea",
Expand All @@ -84,11 +118,17 @@ snapshots["sbb-alert-group renders A11y tree Chrome"] =
},
{
"role": "text",
"name": "The rail traffic between Allaman and Morges is interrupted. All trains are cancelled. "
"name": "The rail traffic between Allaman and Morges is interrupted. All trains are cancelled."
},
{
"role": "link",
"name": "Find out more"
"name": "Find out more",
"children": [
{
"role": "text",
"name": "Find out more"
}
]
},
{
"role": "button",
Expand All @@ -98,7 +138,7 @@ snapshots["sbb-alert-group renders A11y tree Chrome"] =
}
</p>
`;
/* end snapshot sbb-alert-group renders A11y tree Chrome */
/* end snapshot sbb-alert-group renders A11y tree Safari */

snapshots["sbb-alert-group renders A11y tree Firefox"] =
`<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,41 @@ snapshots["sbb-alert A11y tree Chrome"] =
`;
/* end snapshot sbb-alert A11y tree Chrome */

snapshots["sbb-alert A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "heading",
"name": "Interruption",
"level": 3
},
{
"role": "text",
"name": "Alert content "
},
{
"role": "link",
"name": "test-a11y-label",
"children": [
{
"role": "text",
"name": "Find out more"
}
]
},
{
"role": "button",
"name": "Close message"
}
]
}
</p>
`;
/* end snapshot sbb-alert A11y tree Safari */

snapshots["sbb-alert A11y tree Firefox"] =
`<p>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ snapshots["sbb-autocomplete-grid-button A11y tree Chrome"] =
`;
/* end snapshot sbb-autocomplete-grid-button A11y tree Chrome */

snapshots["sbb-autocomplete-grid-button A11y tree Safari"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "button",
"name": ""
}
]
}
</p>
`;
/* end snapshot sbb-autocomplete-grid-button A11y tree Safari */

snapshots["sbb-autocomplete-grid-button A11y tree Firefox"] =
`<p>
{
Expand Down
Loading
Loading