Comments

dsnopek’s picture

lsolesen’s picture

Status: Active » Needs review
StatusFileSize
new1.45 KB

Maybe there should be a test here also for whether the image is actually shown on the page.

dsnopek’s picture

Yeah, it'd be great to be able to say:

Then I should see an image with the alternate text "blah"

But then we'll need to also upload the image and get the "Alternate text" field.

lsolesen’s picture

In wetkit the accessibility test has a check for alt text

dsnopek’s picture

Ah, sweet! I found the code here:

http://drupalcode.org/project/wetkit.git/blob/refs/heads/7.x-1.x:/tests/...

Can you add this to your patch and use it for the image test?

lsolesen’s picture

Checkout https://travis-ci.org/lsolesen/panopoly/builds/14969671 --> For some reason I could not get it to work correctly. And I have no more time to dig into it for now. It is probably a simple spelling mistake somewhere?

dsnopek’s picture

Component: Code » Tests / Continuous Integration
bwood’s picture

Here's a patch that adds the alt text test.

dsnopek’s picture

Status: Needs review » Fixed

Worked for me, so I've committed! Thanks @lsolesen and @bwood!

@bwood: You now have you're first commit listed on your Drupal.org profile page. :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.