Fix A11y tests (#5104)

* replace NavigationStack with ElementNavigationStack to allow the content to be rendered without a NavigationStack in a11y tests

* fix a11y tests

* update xcodeproject

* swiftformat fix

* use iOS 26.1 for CI

* use a wrapper to solve the issue for a11y tests

* ElementNavigationStack only uses the trick in DEBUG mode, and added a swiftlint rule to prevent the usage of NavigationStack
This commit is contained in:
Mauro
2026-02-13 16:45:58 +01:00
committed by GitHub
parent b11438e38d
commit 0e40cc7008
83 changed files with 254 additions and 180 deletions
@@ -1,5 +1,6 @@
"Notification" = "Notification";
"a11y_add_reaction" = "Add reaction: %1$@";
"a11y_address" = "Address";
"a11y_avatar" = "Avatar";
"a11y_collapse_message_text_field" = "Minimize message text field";
"a11y_delete" = "Delete";
@@ -22,6 +23,7 @@
"a11y_poll_end" = "Ended poll";
"a11y_polls_will_remove_selection" = "Will remove previous selection";
"a11y_polls_winning_answer" = "This is the winning answer";
"a11y_qr_code" = "QR Code";
"a11y_react_with" = "React with %1$@";
"a11y_react_with_other_emojis" = "React with other emojis";
"a11y_read_receipts_multiple" = "Read by %1$@ and %2$@";
@@ -1,5 +1,6 @@
"Notification" = "Notification";
"a11y_add_reaction" = "Add reaction: %1$@";
"a11y_address" = "Address";
"a11y_avatar" = "Avatar";
"a11y_collapse_message_text_field" = "Minimise message text field";
"a11y_delete" = "Delete";
@@ -22,6 +23,7 @@
"a11y_poll_end" = "Ended poll";
"a11y_polls_will_remove_selection" = "Will remove previous selection";
"a11y_polls_winning_answer" = "This is the winning answer";
"a11y_qr_code" = "QR Code";
"a11y_react_with" = "React with %1$@";
"a11y_react_with_other_emojis" = "React with other emojis";
"a11y_read_receipts_multiple" = "Read by %1$@ and %2$@";
@@ -194,6 +194,22 @@
<string>%d notifications</string>
</dict>
</dict>
<key>notification_fallback_n_content</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@COUNT@</string>
<key>COUNT</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>You have %d new message.</string>
<key>other</key>
<string>You have %d new messages.</string>
</dict>
</dict>
<key>notification_invitations</key>
<dict>
<key>NSStringLocalizedFormatKey</key>