Skip to content

Commit 39688e4

Browse files
committed
Refactor code tab selection in test
1 parent 3953cb5 commit 39688e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cypress/e2e/features/code-tabs.cy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ describe('Code Tabs', () => {
3737
.within(() => {
3838
cy.get('[role="tab"]').then(($tabs) => {
3939
if ($tabs.length >= 2) {
40-
// Get text of second tab
41-
const tabText = $tabs[1].textContent;
42-
// Click it
40+
// Click second tab
4341
cy.wrap($tabs[1]).click();
4442
}
4543
});

0 commit comments

Comments
 (0)