Skip to content

Commit 85eff52

Browse files
committed
Change role to menuitem
1 parent c8b0520 commit 85eff52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/gitbook/e2e/internal.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ const testCases: TestsCase[] = [
121121
);
122122
// the customized space title
123123
await expect(
124-
variantSelectionDropdown.getByRole('link', {
124+
variantSelectionDropdown.getByRole('menuitem', {
125125
name: 'Multi-Variants',
126126
})
127127
).toBeVisible();
128128

129129
// the NON-customized space title
130130
await expect(
131-
variantSelectionDropdown.getByRole('link', {
131+
variantSelectionDropdown.getByRole('menuitem', {
132132
name: 'RFCs',
133133
})
134134
).toBeVisible();
@@ -155,7 +155,7 @@ const testCases: TestsCase[] = [
155155
);
156156
// Click the second variant in the dropdown
157157
await variantSelectionDropdown
158-
.getByRole('link', {
158+
.getByRole('menuitem', {
159159
name: '2.0',
160160
})
161161
.click();
@@ -182,7 +182,7 @@ const testCases: TestsCase[] = [
182182

183183
// Click the second variant in the dropdown
184184
await variantSelectionDropdown
185-
.getByRole('link', {
185+
.getByRole('menuitem', {
186186
name: '2.0',
187187
})
188188
.click();
@@ -223,7 +223,7 @@ const testCases: TestsCase[] = [
223223

224224
// Click the second variant in the dropdown
225225
await variantSelectionDropdown
226-
.getByRole('link', {
226+
.getByRole('menuitem', {
227227
name: '2.0',
228228
})
229229
.click();

0 commit comments

Comments
 (0)