WDD  Β·  Web Design & Development

Testing: Browsers, Accessibility and Usability

Lesson 11 of 13 Approx 2 hrs (Friday double)

Learning intentions

  • Understand the purpose of testing a website before publishing it
  • Know the four types of testing: functional, browser compatibility, accessibility, and usability
  • Know what accessibility means in web design and how to check for common accessibility issues
  • Know what usability means and how it differs from functional testing
  • Understand how to document testing using a test plan with expected and actual results

Success criteria

  • I can name and describe all four types of web testing
  • I can explain the difference between functional testing and usability testing
  • I can identify accessibility problems in a described or shown webpage
  • I can complete a test plan table with expected and actual results
  • I can explain why testing in multiple browsers is necessary
Warm up β€” what do you already know?

Answer before the lesson begins.

1. Which type of testing checks whether a website can be used by people with disabilities?

2. What does alt text on an image do?

3. A developer tests their website in Chrome but not in Firefox or Safari. What type of testing have they failed to carry out?

Key vocabulary

functional testing
Testing that checks whether all features of the website work as intended β€” links navigate correctly, interactive elements respond, images load, and content displays properly.
browser compatibility
Testing the same website in multiple browsers (Chrome, Firefox, Safari, Edge) to check that it looks and behaves correctly in each. Different browsers may render HTML and CSS differently.
accessibility
How easily people with disabilities can use the website β€” including those using screen readers, keyboard navigation, or who have visual impairments. Good accessibility benefits all users.
usability
How easy the site is to use for the target audience β€” is the navigation clear, is content readable, is the layout logical? A site can work perfectly (pass functional testing) but still be hard to use.
WCAG
Web Content Accessibility Guidelines β€” international standards for making web content accessible. Key requirements include sufficient colour contrast, keyboard navigation support, and text alternatives for images.
alt text
A text description added to an image using the alt attribute. Screen readers read it aloud for visually impaired users. Also displayed if the image fails to load.
colour contrast
The difference in brightness between text and its background. Sufficient contrast (e.g. dark text on white) is required for readability β€” especially for users with low vision or colour blindness.
test plan
A document that lists what will be tested, the expected result for each test, and space to record the actual result and whether the test passed or failed.
expected result
What the developer predicts should happen when a test is carried out β€” written before testing begins. For example: "The Home link should navigate to index.html."
actual result
What actually happened when the test was carried out. Compared against the expected result to determine pass or fail. If actual β‰  expected, a bug has been found.

Testing: Browsers, Accessibility and Usability

Why do we test websites?

A website may look correct on the developer's computer but behave differently for users β€” broken links, missing images, distorted layouts on different screen sizes, or content that screen-reader users cannot access. Testing finds errors before publishing so they can be fixed before they affect real users.

Testing should always be planned in advance, documented, and compared against what was expected. Without a test plan, testing is inconsistent and errors are easy to miss.

The four types of testing

At N5 level, there are four types of testing you need to know:

TypeWhat it checksExample test
FunctionalDo all features work as intended?Click the "Contact" link β€” does it navigate to contact.html?
Browser compatibilityDoes the site look and work the same in different browsers?Open the site in Chrome, Firefox, and Safari β€” does the nav bar appear correctly in all three?
AccessibilityCan people with disabilities use the site?Do all images have alt text? Is there enough colour contrast? Can you navigate using only the keyboard?
UsabilityIs the site easy to navigate and understand for the target audience?Can a new visitor find the contact page within 30 seconds? Is the font large enough to read comfortably?
βœ“ Functional Do all links and features work as expected? Click every link; test every form ⊞ Browser Compatibility Does it look right in Chrome, Firefox, Safari? Test in at least 3 browsers β™Ώ Accessibility Can everyone use it, including screen reader users? Check alt text, colour contrast πŸ‘€ Usability Is it easy to navigate for the target audience? Ask real users to find a page

Test a website against all four criteria before publishing

Browser compatibility

Different browsers use different rendering engines β€” Chrome uses Blink, Safari uses WebKit, Firefox uses Gecko. Each engine may interpret HTML and CSS slightly differently, meaning a page that looks perfect in Chrome may have a broken layout in Safari or Firefox.

Good practice is to test in at least three browsers: Chrome, Firefox, and Safari. Edge is also commonly tested. Mobile browsers (on phones and tablets) should be tested too, as screen sizes differ significantly from desktop.

Accessibility

Accessibility means making websites usable for everyone, including people who:

  • Use screen readers (software that reads page content aloud β€” requires alt text on images)
  • Have visual impairments (require sufficient colour contrast, large enough font sizes)
  • Use keyboard-only navigation (must be able to tab through all interactive elements without a mouse)
  • Have cognitive disabilities (benefit from clear, simple language and logical page structure)

The WCAG (Web Content Accessibility Guidelines) set international standards for accessibility. Common requirements include:

  • All images have meaningful alt text
  • Colour contrast ratio is at least 4.5:1 for normal text (dark text on light background)
  • Font sizes are legible (not below 12px for body text)
  • Interactive elements are reachable using the Tab key

Usability

A website can pass all functional tests β€” every link works, every image loads β€” and still be very difficult to use. Usability is about whether real users in the target audience can navigate and use the site effectively.

Usability considerations include:

  • Consistent navigation β€” the nav bar should appear in the same position on every page
  • Readable content β€” appropriate font size, line spacing, and contrast for the target audience
  • Logical structure β€” content is organised in an order that makes sense to users
  • Appropriate file sizes β€” large images slow loading times, which reduces usability, especially on mobile connections
  • Appropriate language β€” vocabulary matched to the intended audience (a children's site should not use complex academic language)

Test plans and test evidence

A test plan is created before testing begins. It lists every test to be carried out, the expected result, and space for the actual result and pass/fail. After testing, test evidence (such as screenshots) is collected to prove tests were carried out.

If the actual result does not match the expected result, the test has failed β€” the developer must investigate, fix the bug, and retest.

Test #DescriptionExpected resultActual resultPass/Fail
1Home page loads in ChromePage loads without errorsPage loaded correctlyPass
2Nav "Gallery" link clickedNavigates to gallery.html404 error shownFail
3Logo image on home pageImage displays with alt text "School logo"Image displayed; alt text presentPass
4Nav bar in FirefoxNav bar appears identically to ChromeNav bar rendered correctlyPass

Worked examples

Example 1 β€” Sample test plan for a three-page website

A developer builds a three-page school website (Home, Gallery, Contact). Before publishing, they create this test plan:

Test #DescriptionExpected resultActual resultPass/Fail
1Home page loads in ChromePage displays with correct layout and all imagesPage loaded correctly, all images visiblePass
2"Contact" nav link clicked from HomeBrowser navigates to contact.htmlNavigated to contact.html correctlyPass
3Gallery image checked for alt textAll gallery images have descriptive alt textTwo images had empty alt attributesFail
4Nav bar appearance in FirefoxNav bar layout identical to Chrome versionNav bar items stacked vertically in FirefoxFail

Tests 3 and 4 failed β€” the developer must fix the empty alt texts and investigate the Firefox CSS issue, then retest both.

Example 2 β€” Identifying three accessibility issues

A web page has the following features. Identify the accessibility problem in each case.

1
Image of the school with no alt attribute β€” Problem: screen readers cannot describe the image to visually impaired users. Fix: add alt="School building from front entrance".
2
White text on a pale yellow background β€” Problem: insufficient colour contrast. Users with low vision or colour blindness may be unable to read the text. Fix: use dark text (e.g. #1a1a2e) on the yellow background, or use a darker background.
3
Navigation menu only works with mouse hover effects (CSS :hover) β€” Problem: keyboard-only users cannot navigate the menu because Tab key focus does not trigger hover. Fix: add keyboard-accessible focus states using CSS :focus pseudo-class.
Example 3 β€” Functional pass, usability fail

A pupil builds a site for their class. All links work, all images load, and the nav bar appears on every page. Their teacher reports the site is very hard to use.

1
The pupil only tested functional testing β€” checking that features technically work. Their tests all passed.
2
The teacher's complaint is about usability. Possible usability issues: navigation labels are unclear ("Page A", "Page B" instead of meaningful names); font is 9pt and very hard to read; content is in a random order not matched to user needs.
3
Lesson: Functional testing and usability testing are different. A site that works technically can still be confusing or unusable for the intended audience. Both types of testing are required.
Now you try

Create a basic test plan for a two-page school website (Home and Contact). Include at least four rows covering at least one test from each of these categories: functional, accessibility, and usability.

For each row, write: Test #, Description, Expected Result.

Test #DescriptionExpected resultType
1Click "Contact" link on Home pageNavigates to contact.html without errorsFunctional
2All images on Home page checked for alt textEvery image has a meaningful alt attributeAccessibility
3Home page viewed on mobile (iPhone)Page layout adjusts and is readable on small screenUsability
4Home page opened in FirefoxPage appears identical to Chrome versionBrowser compatibility

Accept any valid rows. Each row should have a clear description, a testable expected result, and cover the required types. Actual results and Pass/Fail columns would be filled in after testing is carried out.

Common mistakes
βœ•
Confusing functional testing with usability testing. Functional testing checks that features work technically (links navigate, buttons click, images load). Usability testing checks whether real users can use the site easily. A site that passes every functional test can still fail usability testing.
βœ•
Thinking alt text is optional. The alt attribute should be on every image. Leaving it out or using alt="" on meaningful images is an accessibility failure β€” screen reader users get no information about the image. Decorative images may use alt="", but content images must have meaningful descriptions.
βœ•
Testing in only one browser and assuming the site works everywhere. Chrome, Firefox, Safari, and Edge each have a different rendering engine. CSS that works in Chrome may break in Firefox or Safari. All four main browsers must be tested to confirm cross-browser compatibility.
βœ•
Writing the actual result before testing. The expected result is written before testing begins β€” it is a prediction. The actual result is recorded only after carrying out the test. Filling in actual results before testing defeats the purpose of having a test plan.
Exam tip

The N5 exam tests web testing in three main ways: (1) "Describe one accessibility feature a developer should include" β€” strong answers name a specific feature (alt text, sufficient contrast, keyboard navigation) and explain why it helps. (2) "Complete the expected result column of this test plan" β€” write a clear, testable prediction (not just "it works" β€” say exactly what should happen). (3) "Explain the difference between functional and usability testing" β€” one sentence each: functional = features work technically; usability = easy for the target audience to use.

When asked about browser compatibility, always explain WHY it matters: different browsers use different rendering engines, so CSS and HTML may appear differently. Simply saying "test in different browsers" without explaining why is worth only 1 of a 2-mark answer.

Task Set

Questions 1–3 are auto-checked. Questions 4–8 are self-marked β€” write your answer, then reveal the model answer to check your work.

1. What is browser compatibility testing? TYPE 1

2. Which of the following is an accessibility consideration when designing a website? TYPE 1

3. What should a test plan contain? TYPE 1

4. Describe the difference between functional testing and usability testing. Give one example of each. (2 marks) TYPE 2

Functional testing checks that all features of the website work as intended β€” that links navigate correctly, images load, and interactive elements respond. Example: clicking the "About" link to verify it navigates to about.html (1 mark).

Usability testing checks whether the site is easy to navigate and understand for the intended audience β€” whether a real user can find what they need. Example: checking that a new visitor can find the contact page within 30 seconds, or that the font size is comfortable to read (1 mark).

Key distinction: functional = technically works; usability = easy for users to use. A site can pass all functional tests and still have poor usability.

5. A website passes all functional tests β€” every link works, every image loads, and all forms submit correctly. However, users report that the site is very confusing to navigate. Explain how this is possible. (2 marks) TYPE 2

Functional testing only checks whether features work correctly β€” it does not test whether the site is easy to use (1 mark). The navigation labels may be unclear, the layout may be confusing, or the content may not be organised in an order that makes sense to users β€” none of these would be detected by functional testing (1 mark).

The developer should also carry out usability testing with members of the target audience to identify and fix navigation and layout problems.

6. A described webpage has the following features. Identify three accessibility problems. (3 marks) TYPE 2
Features: (a) a decorative banner image with no alt attribute; (b) all body text is 8pt; (c) links are shown in a slightly different shade of the same colour as the surrounding text β€” colour is the only visual difference.

(a) No alt attribute on the image: screen reader users will receive no description of the image, making it inaccessible to visually impaired users (1 mark).

(b) Body text at 8pt: this is far too small to read comfortably for most users. Users with low vision will be unable to read the content. Good practice is a minimum of 14–16px for body text (1 mark).

(c) Links distinguished only by colour: users who are colour blind may not be able to distinguish links from surrounding text. Links should also be underlined or visually differentiated in a way that does not rely on colour alone (1 mark).

7. Complete the expected results for these three test descriptions. (3 marks) TYPE 2
Test 1: Click the "Home" link in the navigation bar.
Test 2: View the page in Safari after designing it in Chrome.
Test 3: Check the main hero image using a screen reader.

Test 1 expected result: The browser navigates to index.html (the home page) without errors (1 mark).

Test 2 expected result: The page displays with the same layout, colours, and functionality in Safari as in Chrome β€” no broken elements or distorted CSS (1 mark).

Test 3 expected result: The screen reader announces a meaningful description of the image β€” the alt text describes the image content (1 mark).

Note: expected results must be specific and testable. "It works" is not a valid expected result.

8. A pupil says: "I tested my site and it works fine." Explain two reasons why this is not a sufficient approach to testing. (2 marks) TYPE 2

Accept any two of the following (1 mark each):

1. No test plan was used β€” without a documented test plan, some features may not have been tested at all, and there is no record of what was checked.

2. Only one browser was tested β€” the site may appear broken in other browsers (Firefox, Safari, Edge). Browser compatibility testing requires multiple browsers.

3. Accessibility was not tested β€” the pupil only tested functional features from their own perspective. Users with disabilities (e.g. screen reader users) may be unable to use the site.

4. Usability was not tested β€” a single user testing their own site may not represent the target audience. Features that seem obvious to the developer may be confusing for real users.
Teacher notes β€” Shift+T to hide

Suggested timing: 2-hour double period. First hour: notes, worked examples, now-you-try. Second hour: peer testing activity then task set Q4–Q8 individually.

Peer testing activity: Have all pupils swap their WDD project files (or describe a fictitious 2-page site) and complete a test plan on paper. Give each pupil a blank test plan template with four rows. One test must be functional, one accessibility, one usability. Swap back and compare plans. This is more memorable than reading about testing.

Live accessibility demo: If equipment allows, open wave.webaim.org on the projector and paste in any publicly accessible website URL. Show the accessibility report that comes back β€” errors for missing alt text, contrast failures, etc. Even a simple BBC or SQA page will have something to discuss. Alternatively, use browser DevTools β†’ Lighthouse β†’ Accessibility audit.

Q5 (functional pass, usability fail) is a conceptually subtle question that pupils often get wrong. Spend 5 minutes on it as a class before pupils attempt Q5 individually. Ask: "What is the difference between a technically working site and a good site?" Bridge to the idea that usability is about the user's experience, not just the code.

Q8 β€” the "I tested it and it's fine" answer β€” is a real SQA question type. Emphasise that informal testing with no plan, in one browser, from the developer's perspective is not adequate testing. Pupils should be able to give at least two distinct reasons.