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

Add automated a11y tests #23057

Merged
merged 23 commits into from
Nov 15, 2024
Merged

Add automated a11y tests #23057

merged 23 commits into from
Nov 15, 2024

Conversation

thatswinnie
Copy link
Contributor

@thatswinnie thatswinnie commented Nov 12, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

This adds automated a11y audits to onboarding, tab tray and overlay mode. It fixes three issues found while running the tests.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Nov 12, 2024

Messages
📖 Project coverage: 32.26%
📖 Edited 10 files
📖 Created 1 files

Client.app: Coverage: 30.16

File Coverage
TabDisplayView.swift 38.98% ⚠️
URLBarView.swift 32.59% ⚠️
TabCell.swift 72.46%

ComponentLibrary: Coverage: 30.84

File Coverage
LinkButton.swift 88.52%

Generated by 🚫 Danger Swift against d9f160d

@@ -321,4 +321,42 @@ class OnboardingTests: BaseTestCase {
let topSites = app.collectionViews.cells[AccessibilityIdentifiers.FirefoxHomepage.TopSites.itemCell]
mozWaitForElementToExist(topSites)
}

func testFirstRunTourAccessibility() throws {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isabelrios Should we put such a test in TestRail and insert the TestRail link here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test looks very similar to this one:


@thatswinnie are we missing something there? We can add it there so that we don't duplicate the complete test... Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh never mind, just saw the call to try app.performAccessibilityAudit() we could add that in the exisiting test though...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline. We agreed to have this test as part of the exisiting UI testFirstRunTour. Then, the MTE team will create a specific test plan for a11y tests that can run as another workflow in parallel with the existing Smoketests and move this and other tests that will be implemented to it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYi ^ @mdotb-moz

@thatswinnie thatswinnie marked this pull request as ready for review November 14, 2024 11:21
@thatswinnie thatswinnie requested review from a team as code owners November 14, 2024 11:21
@thatswinnie thatswinnie requested review from ih-codes and removed request for mdotb-moz November 15, 2024 14:14
Copy link
Collaborator

@ih-codes ih-codes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!! 👏

@thatswinnie thatswinnie merged commit 28c5e06 into main Nov 15, 2024
11 of 14 checks passed
@thatswinnie thatswinnie deleted the wt/a11y-testing branch November 15, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants