From 4d4106b04b8b9bb849a57b24abb2a75bbcc8d058 Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Wed, 2 Jun 2021 17:31:23 +0200 Subject: [PATCH] chore: tweak heading-order test --- test/checks/navigation/heading-order.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/checks/navigation/heading-order.js b/test/checks/navigation/heading-order.js index b0930532b2..624ac130e7 100644 --- a/test/checks/navigation/heading-order.js +++ b/test/checks/navigation/heading-order.js @@ -444,7 +444,11 @@ describe('heading-order', function() { }, { ancestry: ['path2'], - level: 3 + level: 2 + }, + { + ancestry: ['iframe'], + level: -1 }, { ancestry: ['path3'], @@ -473,8 +477,8 @@ describe('heading-order', function() { var afterResults = checks['heading-order'].after(results); assert.isTrue(afterResults[0].result); - assert.isFalse(afterResults[1].result); - assert.isTrue(afterResults[2].result); + assert.isTrue(afterResults[1].result); + assert.isFalse(afterResults[2].result); }); it('should not error if iframe is first result', function() {