Added "wait" field in new task and edit task pages

Added UI control to set `wait` option in pa11y script. Updated test
cases.

[pa11y-dashboard issue
#127](https://github.com/springernature/pa11y-dashboard/issues/127)
This commit is contained in:
Rayraegah
2016-05-21 14:13:38 +01:00
parent aa3f0eb727
commit 2a15773e04
6 changed files with 36 additions and 0 deletions

View File

@@ -63,6 +63,13 @@ describe('GET /<task-id>/edit', function() {
assert.isDefined(field.getAttribute('disabled'));
});
it('should have a "wait" field', function() {
var field = this.form.querySelectorAll('input[name=wait]')[0];
assert.isDefined(field);
assert.strictEqual(field.getAttribute('type'), 'text');
assert.strictEqual(field.getAttribute('value'), '0');
});
it('should have a disabled "standard" field', function() {
var field = this.form.querySelectorAll('select[name=standard]')[0];
assert.isDefined(field);