Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Implement some sort of CSS / JS testing #23

Closed
carwin opened this issue Nov 13, 2014 · 2 comments
Closed

Implement some sort of CSS / JS testing #23

carwin opened this issue Nov 13, 2014 · 2 comments
Assignees

Comments

@carwin
Copy link
Contributor

carwin commented Nov 13, 2014

I've been wanting to use http://hardy.io/ for a very long time now to write Cucumber tests for my CSS. Sadly there's a bug and I can't get it to work. Here it is: thingsinjars/Hardy#24

This would be a sample Hardy test:

Feature: Website layout test
As a user I want visual consistency on the http://csste.st/ website

Scenario: Content layout
Given I visit "http://csste.st/"
Then "section > p" should have "color" of "rgb(68, 68, 68)"

What're other folks' thoughts on testing the front-end? I know we've used CasperJS before to do some of that on one project or another.

I want testing to be part of the project somehow.

@carwin carwin self-assigned this Nov 13, 2014
@carwin carwin mentioned this issue Nov 13, 2014
@carwin
Copy link
Contributor Author

carwin commented Nov 13, 2014

I think the problem in that Hardy issue has to do with something in Firefox's webdriver thing. After an update it was fixed for me.

Let me know if anyone has a problem with this.

@carwin
Copy link
Contributor Author

carwin commented Feb 4, 2015

I think it's safe to say we should just do this on a project-by-project basis and not bake it into our standard setup. Closing.

@carwin carwin closed this as completed Feb 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants