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

BIG-22960 Add data attributes for banner automation. #597

Merged
merged 1 commit into from
Oct 28, 2015
Merged

BIG-22960 Add data attributes for banner automation. #597

merged 1 commit into from
Oct 28, 2015

Conversation

bc-ravijayaramappa
Copy link
Contributor

@bigbot
Copy link

bigbot commented Oct 28, 2015

Autotagging @mickr @mcampa @haubc

@hegrec
Copy link
Contributor

hegrec commented Oct 28, 2015

👍 LGTM, ignore the build failure, there are no tests and it can't clone the repo.

hegrec added a commit that referenced this pull request Oct 28, 2015
BIG-22960 Add data attributes for banner automation.
@hegrec hegrec merged commit f504722 into bigcommerce:master Oct 28, 2015
@hegrec hegrec deleted the BIG-22960 branch October 28, 2015 23:27
@mcampa
Copy link
Contributor

mcampa commented Oct 29, 2015

Just for curiosity, why do we need those data attributes?

@SiTaggart
Copy link
Contributor

Test isolation. When you hook UI automation tests to class names, just like hooking JS actions to class names, 9 times out of 10, someone will refactor something and will break those tests. We style classnames, they are open for removal, moving, completely throw away.

Personally I would namespace them data-test-sometestname="whatever" so it's really obvious it's for automation.

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