Crystal Preston-Watson
Hello everyone, and welcome to Automation and Accessibility Mutual Not exclusive. I'm Crystal Preston-Watson, senior digital accessibility analyst at Salesforce. I want to tell you some of the things you won't find in this session. This is not an accessibility 101 and a foundation in accessibility is necessary for accessibility testing. But today, I focus on a higher-level questions and issues teams need to consider before beginning accessibility automation. That also means I won't be coding or demoing tools. However, I will give you links to items and resources that I discussed today. If you feel that you don't have a solid understanding of the basics of digital accessibility, I encourage you to come back to this video after doing a bit more learning. I'll be here waiting. Well not me. This is the digital version of me. I don't live in this video. Let's get started by going over the 3 types of accessibility testing. Manual accessibility testing is when teams test applications manually for accessibility issues that may cause problems for users with disabilities. This testing is conducted using browser and plug in tools like Wave, Lighthouse, or Axe. Also, assistive technology like screen readers and switches. Currently, on the screen, I have a slide that has several logos for automated tools like the ones I just mentioned briefly, and screen readers, Jaws and NVDA. Also, an image of two jelly beans switch devices? Automation Accessibility testing is my focus today. You might be wondering why I listed some semi-automated tools under manual instead of automation? Well, while many of those tools can be fully automated, their browser extensions are also widely utilized in manual testing. This slide showcases three logos, Axe, Applitools, Espresso. DQ's open-source Axe core library powers a considerable portion of free and paid accessibility tools and automation frameworks available currently. Applitools's contrast advisor validates minimum color contrast ratios for text and graphics, and can be integrated into existing automation frameworks. Espresso is an Android UI testing framework that has integrated accessibility checks. User or user acceptance testing gets overlooked by companies when it comes to accessibility. Testing with people with disabilities is necessary to understand how your application or site performs in the real world, and finds issues and bugs beyond accessibility conformance. This testing needs to be done with more than one person or group with a singular disability within your target audience. Also, make sure that its paid. People's time is worth money, and given that this testing can find very costly bugs, it's worth more than free software. Part one, are you ready to automate? I regularly ask those who tell me that their testing team wants to automate their accessibility testing, if they are ready. I don't ask this expecting an answer, but to get them to reflect on their current accessibility initiative. There's a vast difference between wanting to automate and being ready and able to automate accessibility testing. Teams tend to focus on technical readiness, but with accessibility, two significant considerations must be addressed before a framework is selected or code written to make sure automation is successful. Let's take a look at those now. Experience with accessibility, for many testing teams, accessibility is not an intentional undertaking, as my grandfather like to say, they fall as backward into it. A demand by company leadership in response to customers concerns, complaints, or even ADA lawsuits. There's scrambling to inventory accessibility in the product. There's no time for preparation or ramp up for training or education. The issue compounds with the realization that accessibility has a needed provenance of manual testing. There's pressure to automate ASAP to make testing quicker or more effective. You can't see me on screen, but I did make air quotes when saying effective. Don't get me wrong, I am on board with test automation. When done right, it increases productivity, quality, and requires a smaller time investment. But the magic words are when done right. That doesn't happen with teams that do not have a solid foundation in digital accessibility, that struggle to interpret and test against the Web Content Accessibility Guidelines success criteria, let alone understand how disabled people use assistive technology devices to navigate their products. In a presentation called After the Audit, I suggest actions that teams can take to develop accessibility skills and experience to integrate into their testing processes. Here are a few of those actions that your team can undertake. One, establish a baseline of knowledge. It's essential to create a shared language and understanding when discussing accessibility and disability. Two, communicate why and how to go through testing. Encouraging teams to learn through courses, attend conferences, and providing team training on core fundamentals. Two, Play to people's strengths. That is finding people for the tasks that fit their experience of skill. If someone is apprehensive about testing using screen readers, well, you want them to have the skill. They can work on keyboard testing and teaching that to others while they skill up with other assistive technology. Three, shifting accessibility to the left. It's not unusual for testing teams to become the sole champion of accessibility within the company. Four, accessibility to be a genuine priority and done with quality. It has to be the concern of the whole organization. This means promoting and informing stakeholders and leadership that accessibility cannot be tested away and needs to be a companywide priority. This last action leads me to the second consideration for being automation ready, capacity and support. As I previously mentioned, testing often becomes the sole champion of accessibility within a company. Unfortunately, it is considered an afterthought or a nice to have instead of a necessity. This is reminiscent of some opinions about queuing testing, especially when it comes to manual and exploratory testing. I was a QA for nine years, and I'm all too familiar with the siloing and devaluing of testing in QA. It's not shocking to see both view the same, and why testing teams become the de facto order of accessibility. But given the individuals, situations, and circumstances that are affected by inaccessibility in applications and sites, this is not something that can be left up to TechDebt or a one off crunch sprint. There are three items you should evaluate to see if you have the capacity and support to begin automation. Everyone is on board, on board, and taking up appropriate roles when it comes to accessibility. This is why it needs to be a company wide priority with backing and training and education for everyone. If the Company Accessibility Initiative boils down to testing, it's a failed initiative and no automation will make up for that. Ongoing manual testing, I'll get into the particulars later, but manual testing cannot be automated away from accessibility. Automation and manual here are generally mutual. If you have the headcount for both, that's great, but if you don't, then manual is the one that needs to continue. Keeping regression in mind. Regression and accessibility testing can be problematic, mainly when bugs and issues are found due to audits, as third party vendors usually conduct them. It's important to make sure bugs fixed due to audits or other avenues make it into your regression testing. It's not unusual to find the same bugs with every new audit, because regression test cases never make it into the in-house testing team's regression suites. If you aren't frozen in existential dread. After considering what goes into being automation ready, congratulation, you probably are ready. But don't break out that code just yet. Part two, what should you and should not automate? A point that needs to be driven home regarding accessibility automation is that they will not find everything. Most accessibility experts agree that between 20% and 40% of accessibility issues are found with automation testing. Combining manual and automation is a balanced and holistic approach to accessibility testing. Teams might be reluctant to add manual testing for accessibility, especially if they are moving to automation in other areas, but manual testing is unavoidable for catching accessibility issues that automation cannot detect. Let's look at areas where you can enhance your accessibility testing with automation and the best places for manual. Unit and integration, unit integration tests are perfect for accessibility automation. This is where you can detect low lying bugs that take a vital time during manual testing, and watch for regression. This also allows you to incorporate accessibility into your continuous integration builts. Some of the things you would want to focus on in unit integration would be. And I want to credit Marcy Sutton for this less work because she's where I got this from. Unit component specific behavior interaction and focus APIs, Aria states. Integration, real world browser testing, document and page level rules, and color contrast. UI, I don't usually encourage UI automation for accessibility. UI tests are known to be flaky due to frequent adjustments and changes. My personal experience and opinion that time can be spent creating unit integration test or best for a person conducting manually. But if you want to have UI automation, these are the scenarios that tend to work best. Multi-page workflows and form flows. Manual, and automation framework cannot make subjective interpretations whether something is or isn't accessible. Also, when it comes to assistive technology devices and software, it's either impossible or not practical to automate their operations. The heart of accessibility is the human experience. This is why manual testing is priceless and a necessity for accessibility. Here are some of the areas that you would want to focus on. Keyboard interactions, Assistive technology Device, Captions, Transcript, all text quality and error identification. Part three, are you ready to automate? At the beginning of this video, I said that there was a difference between wanting to automate and being ready to automate your accessibility testing. I ask you, given all that I've discussed, your team's experience with accessibility, your capacity, support from within your company, are you ready to automate accessibility? Again, I'm not expecting an answer here. This is the digital version of me. I want to thank the Automation Guild for giving me the opportunity to speak to you today. And if you take anything away from this video, let it be this, accessibility is more than design, code, and testing. It's about humans and their experiences. Accessibility is also a human and civil right. If you have any questions about information I presented today or you would like links to some of the resources and items that I've talked about. You can reach me via Twitter @scopicengineer, LinkedIn, just type in Crystal Preston-Watson and my website, CrystalPrestonwatson.com and I will see you next time. The real version me, the digital version one of us. We'll see you again, hopefully.