Skip to content

Commit d2b96e9

Browse files
authored
Merge pull request #149 from tannerdolby/117-improve-tests-perf
2 parents 5da4b10 + 8a63938 commit d2b96e9

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

cypress/integration/accesskey_spec.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ describe("[accesskey]", () => {
55

66
it('should show warning on elements with accesskey', () => {
77
cy.get("[accesskey]")
8-
.each(element => {
9-
cy.get(element)
10-
.after('content')
11-
.should('eq', 'WARNING (W0000): accesskey attribute could interfere and conflict with screen readers and assistive technologies.')
12-
});
8+
.after('content')
9+
.should('eq', 'WARNING (W0000): accesskey attribute could interfere and conflict with screen readers and assistive technologies.')
1310
});
1411
});

cypress/integration/autoplay_spec.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ describe("[autoplay]", () => {
99

1010
it('should show warning outline on elements with autoplay', () => {
1111
cy.get("[autoplay]")
12-
.each(element => {
13-
cy.get(element)
14-
.should('have.css', 'border-color', WARNING_BORDER_COLOR)
15-
});
12+
.should('have.css', 'border-color', WARNING_BORDER_COLOR)
1613
});
1714
});

0 commit comments

Comments
 (0)