Skip to content

Commit 6428258

Browse files
Fix filter-bar tests after latest changes
1 parent 2fbfdb8 commit 6428258

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

scala3doc/e2e/cypress/integration/filter-bar.spec.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe('filter-bar', () => {
77
const testTable: TestTable = [
88
['Visibility', ['public', 'protected']],
99
['Keywords', ['no keywords', 'abstract', 'case', 'final', 'sealed']],
10+
['Inherited', ['Not inherited', 'FilterTestBase', 'FilterTestBaseTrait']],
1011
['Extension', ['Standard member', 'from tests']],
1112
];
1213

@@ -32,6 +33,7 @@ describe('filter-bar', () => {
3233
const testTable: TestTable = [
3334
['Visibility', ['public', 'protected']],
3435
['Keywords', ['no keywords']],
36+
['Inherited', ['Not inherited', 'FilterTestBase']],
3537
['Extension', ['Standard member']],
3638
];
3739

@@ -71,7 +73,7 @@ describe('filter-bar', () => {
7173
});
7274

7375
it(`'Standard member'`, () => {
74-
new FilterBarFixture().toggle().group(2).toggleFilter('Standard member');
76+
new FilterBarFixture().toggle().group(3).toggleFilter('Standard member');
7577

7678
new TabsFixture().definitionTypes.should('not.be.visible');
7779
});
@@ -91,8 +93,17 @@ describe('filter-bar', () => {
9193
new TabsFixture().definitionTypes.should('not.be.visible');
9294
});
9395

96+
it('all inherited options', () => {
97+
new FilterBarFixture()
98+
.toggle()
99+
.group(2)
100+
.toggleFilter('Not inherited', 'FilterTestBase', 'FilterTestBaseTrait');
101+
102+
new TabsFixture().definitionTypes.should('not.be.visible');
103+
});
104+
94105
it('all extension options', () => {
95-
new FilterBarFixture().toggle().group(2).toggleFilter('Standard member', 'from tests');
106+
new FilterBarFixture().toggle().group(3).toggleFilter('Standard member', 'from tests');
96107

97108
new TabsFixture().definitionTypes.should('not.be.visible');
98109
});
@@ -288,7 +299,7 @@ class BatchSelectionFixture {
288299
}
289300

290301
function openPage() {
291-
cy.visit('http://localhost:8080/testcases/api/tests/-filter-test/index.html');
302+
cy.visit('http://localhost:8080/testcases/-scala3doc%20testcases/tests/-filter-test/index.html');
292303
}
293304

294305
type TestTable = [string, string[]][];

0 commit comments

Comments
 (0)