Skip to content

Commit 05c2279

Browse files
feat(deepLinks): add deep links for mqtt subscriptions index and creation (#5491)
1 parent 4a93697 commit 05c2279

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

cypress/e2e/cloud/deepLinks.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ describe('Deep linking', () => {
5151
cy.visit('/me/load-data')
5252
cy.location('pathname').should('eq', `/orgs/${org.id}/load-data/sources`)
5353

54+
cy.visit('/me/load-data/subscriptions')
55+
cy.location('pathname').should(
56+
'eq',
57+
`/orgs/${org.id}/load-data/subscriptions`
58+
)
59+
60+
cy.visit('/me/load-data/subscriptions/create')
61+
cy.location('pathname').should(
62+
'eq',
63+
`/orgs/${org.id}/load-data/subscriptions/create`
64+
)
65+
5466
cy.visit('/me/nodejsclient')
5567
cy.location('pathname').should(
5668
'eq',

src/utils/deepLinks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const buildDeepLinkingMap = (orgId: string) => ({
1414
'/me/javaclient': `/orgs/${orgId}/load-data/client-libraries/java`,
1515
'/me/labels': `/orgs/${orgId}/settings/labels`,
1616
'/me/load-data': `/orgs/${orgId}/load-data/sources`,
17+
'/me/load-data/subscriptions': `/orgs/${orgId}/load-data/subscriptions`,
18+
'/me/load-data/subscriptions/create': `/orgs/${orgId}/load-data/subscriptions/create`,
1719
'/me/nodejsclient': `/orgs/${orgId}/load-data/client-libraries/javascript-node`,
1820
[`/me/${PROJECT_NAME_PLURAL.toLowerCase()}`]: `/orgs/${orgId}/${PROJECT_NAME_PLURAL.toLowerCase()}`,
1921
'/me/notebooks': `/orgs/${orgId}/${PROJECT_NAME_PLURAL.toLowerCase()}`,

0 commit comments

Comments
 (0)