Skip to content

Commit

Permalink
Issue #867. Update form test (new markup).
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Dec 31, 2015
1 parent f4ef68f commit 77e8020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/functional/reporting-non-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ define([
.findByCssSelector('#image').type('/path/to/foo.hacks')
.end()
// wait a bit
.sleep(100)
.findByXpath('//*[@id="new-report"]/div/form/div[2]/div[2]').getAttribute('class')
.sleep(250)
.findByCssSelector('.js-image-upload').getAttribute('class')
.then(function(className) {
assert.include(className, 'js-form-error');
assert.notInclude(className, 'js-no-error');
Expand All @@ -131,9 +131,9 @@ define([
.findByCssSelector('#image').type('/path/to/foo.jpg')
.end()
// wait a bit
.sleep(100)
.sleep(250)
// validation message should be removed now
.findByXpath('//*[@id="new-report"]/div/form/div[2]/div[2]').getAttribute('class')
.findByCssSelector('.js-image-upload').getAttribute('class')
.then(function(className) {
assert.include(className, 'js-no-error');
assert.notInclude(className, 'js-form-error');
Expand Down
2 changes: 1 addition & 1 deletion webcompat/templates/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
</div>
<div class="r-Grid-cell r-Grid-cell--alignBottom r-all--1of2 r-maxS--2of2">
<div class="wc-Form-group {% if form.image.errors %}wc-Form-error{% endif %}">
<div class="js-image-upload wc-Form-group {% if form.image.errors %}wc-Form-error{% endif %}">
<label class="wc-Form-upload" for="image">
<div class="wc-Form-upload-wrapper">
<div class="wc-Form-upload-icon" aria-hidden="true">
Expand Down

0 comments on commit 77e8020

Please sign in to comment.