mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Write integration tests for hideElements and headers
This commit is contained in:

committed by
Rowan Manning

parent
509914d19a
commit
ee729d1d55
@@ -96,6 +96,18 @@ describe('GET /new', function() {
|
|||||||
assert.notStrictEqual(fields.length, 0);
|
assert.notStrictEqual(fields.length, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should have a "hideElements" field', function() {
|
||||||
|
const field = this.form.find('input[name=hideElements]').eq(0);
|
||||||
|
assert.isDefined(field);
|
||||||
|
assert.strictEqual(field.attr('type'), 'text');
|
||||||
|
assert.strictEqual(field.attr('value'), '');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have a "headers" field', function() {
|
||||||
|
const field = this.form.find('textarea[name=headers]').eq(0);
|
||||||
|
assert.isDefined(field);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -91,6 +91,18 @@ describe('GET /<task-id>/edit', function() {
|
|||||||
assert.strictEqual(field.attr('value'), 'access');
|
assert.strictEqual(field.attr('value'), 'access');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should have a "hideElements" field', function() {
|
||||||
|
const field = this.form.find('input[name=hideElements]').eq(0);
|
||||||
|
assert.isDefined(field);
|
||||||
|
assert.strictEqual(field.attr('type'), 'text');
|
||||||
|
assert.strictEqual(field.attr('value'), '');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have a "headers" field', function() {
|
||||||
|
const field = this.form.find('textarea[name=headers]').eq(0);
|
||||||
|
assert.isDefined(field);
|
||||||
|
});
|
||||||
|
|
||||||
it('should have "ignore" fields', function() {
|
it('should have "ignore" fields', function() {
|
||||||
const fields = this.form.find('input[name="ignore[]"]');
|
const fields = this.form.find('input[name="ignore[]"]');
|
||||||
assert.isDefined(fields);
|
assert.isDefined(fields);
|
||||||
|
Reference in New Issue
Block a user