Skip to content

Commit db25036

Browse files
committed
fixed regression test
1 parent 8c737e3 commit db25036

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

test/tests/disclosure_faq.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ const exampleFile = 'content/patterns/disclosure/examples/disclosure-faq.html';
88
const ex = {
99
buttonSelector: '#ex1 button',
1010
buttonSelectors: [
11-
'#ex1 ol li:nth-of-type(1) button',
12-
'#ex1 ol li:nth-of-type(2) button',
13-
'#ex1 ol li:nth-of-type(3) button',
14-
'#ex1 ol li:nth-of-type(4) button',
11+
'#ex1 ol li:nth-child(1) button',
12+
'#ex1 ol li:nth-child(2) button',
13+
'#ex1 ol li:nth-child(3) button',
14+
'#ex1 ol li:nth-child(4) button'
1515
],
1616
answerSelectors: [
17-
'#ex1 ol li:nth-of-type(1) .desc',
18-
'#ex1 ol li:nth-of-type(2) .desc',
19-
'#ex1 ol li:nth-of-type(3) .desc',
20-
'#ex1 ol li:nth-of-type(4) .desc',
17+
'#ex1 ol li:nth-child(1) .desc',
18+
'#ex1 ol li:nth-child(2) .desc',
19+
'#ex1 ol li:nth-child(3) .desc',
20+
'#ex1 ol li:nth-child(4) .desc'
2121
],
2222
};
2323

@@ -127,7 +127,7 @@ ariaTest(
127127
buttonSelector
128128
);
129129

130-
t.true(
130+
t.false(
131131
await t.context.session
132132
.findElement(By.css(answerSelector))
133133
.isDisplayed(),
@@ -172,7 +172,7 @@ ariaTest(
172172
buttonSelector
173173
);
174174

175-
t.true(
175+
t.false(
176176
await t.context.session
177177
.findElement(By.css(answerSelector))
178178
.isDisplayed(),

0 commit comments

Comments
 (0)