Skip to content

Commit e25c686

Browse files
committed
fix: tests
1 parent b1abe08 commit e25c686

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

test/api-console-navigation.test.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -455,23 +455,29 @@ describe('API Console navigation', () => {
455455
it(`should list all endpoints`, async () => {
456456
const endpointsList = navigationEndpointsList(element);
457457
assert.ok(endpointsList);
458-
assert.lengthOf(endpointsList, 4);
458+
assert.lengthOf(endpointsList, 7);
459459

460460
[
461-
["/test-headers", "Headers V2"],
462461
["/test-custom-scheme", "Custom security scheme"],
462+
["/test-headers", "Headers V2"],
463+
["/test-oauth20-scheme", "Oauth 2.0 security scheme"],
463464
["/test-oauth10-scheme", "Oauth 1.0 security scheme"],
464-
["/test-oauth20-scheme", "Oauth 2.0 security scheme"]
465+
["/test-pass-through-scheme", "Digest pass through scheme"],
466+
["/test-basic-scheme", "Basic security scheme"],
467+
["/test-digest-scheme", "Digest security scheme"],
465468
].forEach(([path, name], index) => testEndpoint(endpointsList[index], path, name))
466469
});
467470

468471
it(`should list all security items`, async () => {
469472
const securityList = navigationSecurityList(element);
470473
assert.ok(securityList);
471-
assert.lengthOf(securityList, 3);
472-
assert.equal(securityList[0].innerText.trim(), 'customScheme - x-custom');
473-
assert.equal(securityList[1].innerText.trim(), 'oauth_1_0 - OAuth 1.0');
474+
assert.lengthOf(securityList, 6);
475+
assert.equal(securityList[0].innerText.trim(), 'digest - Digest Authentication');
476+
assert.equal(securityList[1].innerText.trim(), 'customScheme - x-custom');
474477
assert.equal(securityList[2].innerText.trim(), 'oauth_2_0 - OAuth 2.0');
478+
assert.equal(securityList[3].innerText.trim(), 'passthrough - Pass Through');
479+
assert.equal(securityList[4].innerText.trim(), 'basic - Basic Authentication');
480+
assert.equal(securityList[5].innerText.trim(), 'oauth_1_0 - OAuth 1.0');
475481
});
476482
});
477483

0 commit comments

Comments
 (0)