Skip to content

Commit

Permalink
update url so toolbar title matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Forfold committed Nov 21, 2023
1 parent 8d4158f commit e9e1b84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/src/app/main/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const routes: Record<string, JSXElementConstructor<any>> = {
'/users': UserList,
'/users/:userID': UserDetails,
'/users/:userID/on-call-assignments': UserOnCallAssignmentList,
'/users/:userID/schedule-calendar-subscriptions':
'/users/:userID/external-calendar-subscriptions':
UserCalendarSubscriptionList,
'/users/:userID/active-sessions': UserSessionList,

Expand Down
2 changes: 1 addition & 1 deletion web/src/app/users/UserDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function UserDetails(props: {
if (userID === currentUserID) {
links.push({
label: 'External Calendar Subscriptions',
url: 'schedule-calendar-subscriptions',
url: 'external-calendar-subscriptions',
subText: 'Manage schedules you have subscribed to',
})
}
Expand Down
10 changes: 5 additions & 5 deletions web/src/cypress/e2e/calendarSubscriptions.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function testSubs(screen: ScreenFormat): void {
it('should create a subscription from their profile', () => {
const name = c.word({ length: 5 })

cy.visit('/profile/schedule-calendar-subscriptions')
cy.visit('/profile/external-calendar-subscriptions')

cy.get('[data-cy="list-empty-message"]').should(
'contain',
Expand Down Expand Up @@ -121,7 +121,7 @@ function testSubs(screen: ScreenFormat): void {
beforeEach(() => {
cy.createCalendarSubscription().then((sub: CalendarSubscription) => {
cs = sub
cy.visit('/profile/schedule-calendar-subscriptions')
cy.visit('/profile/external-calendar-subscriptions')
})
})

Expand All @@ -131,8 +131,8 @@ function testSubs(screen: ScreenFormat): void {
screen,
'Users',
'Cypress User',
'Schedule Calendar Subscriptions',
`/users/${profile.id}/schedule-calendar-subscriptions`,
'External Calendar Subscriptions',
`/users/${profile.id}/external-calendar-subscriptions`,
)
})

Expand Down Expand Up @@ -205,7 +205,7 @@ function testSubs(screen: ScreenFormat): void {
cy.visit(`/users/${users[0].id}`)
cy.get('[data-cy="route-links"]').should(
'not.contain',
'Schedule Calendar Subscriptions',
'External Calendar Subscriptions',
)
})

Expand Down

0 comments on commit e9e1b84

Please sign in to comment.