fix: urls.primaryName functionality regression (via #5097)
* add tests * compute index before triggering URL load * bonus: improve urls topbar label
This commit is contained in:
6
test/e2e-cypress/static/configs/urls-primary-name.yaml
Normal file
6
test/e2e-cypress/static/configs/urls-primary-name.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
urls:
|
||||
- name: One
|
||||
url: /documents/features/urls/1.yaml
|
||||
- name: Two
|
||||
url: /documents/features/urls/2.yaml
|
||||
urls.primaryName: Two
|
||||
5
test/e2e-cypress/static/configs/urls.yaml
Normal file
5
test/e2e-cypress/static/configs/urls.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
urls:
|
||||
- name: One
|
||||
url: /documents/features/urls/1.yaml
|
||||
- name: Two
|
||||
url: /documents/features/urls/2.yaml
|
||||
12
test/e2e-cypress/static/documents/features/urls/1.yaml
Normal file
12
test/e2e-cypress/static/documents/features/urls/1.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
swagger: "2.0"
|
||||
|
||||
info:
|
||||
title: One
|
||||
|
||||
paths:
|
||||
/:
|
||||
get:
|
||||
summary: an operation
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
12
test/e2e-cypress/static/documents/features/urls/2.yaml
Normal file
12
test/e2e-cypress/static/documents/features/urls/2.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
openapi: "3.0.0"
|
||||
|
||||
info:
|
||||
title: Two
|
||||
|
||||
paths:
|
||||
/:
|
||||
get:
|
||||
summary: an operation
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
Reference in New Issue
Block a user