Skip to content

Commit 465a637

Browse files
authored
feat(SetOrg): update url to match page title (#5422)
1 parent 3458957 commit 465a637

File tree

17 files changed

+48
-35
lines changed

17 files changed

+48
-35
lines changed

cypress/e2e/cloud/about.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe.skip('About Page for free users with only 1 user', () => {
1010
accountType: 'free',
1111
hasUsers: false,
1212
}).then(() => {
13-
cy.visit(`/orgs/${id}/about`)
13+
cy.visit(`/orgs/${id}/org-settings`)
1414
cy.getByTestID('about-page--header').should('be.visible')
1515
})
1616
})
@@ -27,7 +27,7 @@ describe.skip('About Page for free users with only 1 user', () => {
2727

2828
cy.location()
2929
.should(loc => {
30-
expect(loc.pathname).to.include(`/about/delete`)
30+
expect(loc.pathname).to.include(`/org-settings/delete`)
3131
})
3232
.then(() => {
3333
cy.getByTestID('delete-org--overlay').should('exist')
@@ -56,7 +56,7 @@ describe('About Page for free users with multiple users', () => {
5656
accountType: 'free',
5757
hasUsers: true,
5858
}).then(() => {
59-
cy.visit(`/orgs/${id}/about`)
59+
cy.visit(`/orgs/${id}/org-settings`)
6060
cy.getByTestID('about-page--header').should('be.visible')
6161
})
6262
})
@@ -75,7 +75,7 @@ describe('About Page for free users with multiple users', () => {
7575
})
7676

7777
cy.location().should(loc => {
78-
expect(loc.pathname).to.include(`/users`)
78+
expect(loc.pathname).to.include(`/members`)
7979
})
8080
})
8181
})
@@ -88,7 +88,7 @@ describe('About Page for PAYG users', () => {
8888
cy.quartzProvision({
8989
accountType: 'pay_as_you_go',
9090
}).then(() => {
91-
cy.visit(`/orgs/${id}/about`)
91+
cy.visit(`/orgs/${id}/org-settings`)
9292
cy.getByTestID('about-page--header').should('be.visible')
9393
})
9494
})

cypress/e2e/cloud/deepLinks.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ describe('Deep linking', () => {
1212
// so you'll probably need to follow-up with the docs and/or marketing teams.
1313
it('should be redirected to the approprate page from a shortened link', () => {
1414
cy.get('@org').then((org: Organization) => {
15-
cy.visit('/me/about')
16-
cy.location('pathname').should('eq', `/orgs/${org.id}/about`)
15+
cy.visit('/me/org-settings')
16+
cy.location('pathname').should('eq', `/orgs/${org.id}/org-settings`)
1717

1818
cy.visit('/me/alerts')
1919
cy.location('pathname').should('eq', `/orgs/${org.id}/alerting`)
@@ -123,8 +123,8 @@ describe('Deep linking', () => {
123123
cy.visit('/me/usage')
124124
cy.location('pathname').should('eq', `/orgs/${org.id}/usage`)
125125

126-
cy.visit('/me/users')
127-
cy.location('pathname').should('eq', `/orgs/${org.id}/users`)
126+
cy.visit('/me/members')
127+
cy.location('pathname').should('eq', `/orgs/${org.id}/members`)
128128

129129
cy.visit('/me/variables')
130130
cy.location('pathname').should('eq', `/orgs/${org.id}/settings/variables`)

cypress/e2e/cloud/globalHeader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('change-account change-org global header', () => {
108108
.should('be.visible')
109109
.click()
110110

111-
cy.location('pathname').should('eq', `/orgs/${idpeOrgID}/about`)
111+
cy.location('pathname').should('eq', `/orgs/${idpeOrgID}/org-settings`)
112112
cy.getByTestID('org-profile--panel')
113113
.should('be.visible')
114114
.and('contain', 'Organization Profile')
@@ -123,7 +123,7 @@ describe('change-account change-org global header', () => {
123123
.should('be.visible')
124124
.click()
125125

126-
cy.location('pathname').should('eq', `/orgs/${idpeOrgID}/users`)
126+
cy.location('pathname').should('eq', `/orgs/${idpeOrgID}/members`)
127127
cy.getByTestID('tabs--container')
128128
.should('be.visible')
129129
.and('contain', 'Add a new user to your organization')

cypress/e2e/cloud/users.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('Users Page', () => {
88
cy.quartzProvision({
99
hasUsers: true,
1010
}).then(() => {
11-
cy.visit(`/orgs/${id}/users`)
11+
cy.visit(`/orgs/${id}/members`)
1212
cy.getByTestID('users-page--header').should('be.visible')
1313
})
1414
})

cypress/e2e/shared/about.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('About Page', () => {
66
cy.signin()
77

88
cy.get('@org').then((org: Organization) => {
9-
cy.visit(`/orgs/${org.id}/about`)
9+
cy.visit(`/orgs/${org.id}/org-settings`)
1010
cy.getByTestID('about-page--header').should('be.visible')
1111
})
1212
})

cypress/e2e/shared/nav.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ describe('navigation', () => {
6363
6464
\**/
6565

66-
// User Nav -- About
66+
// User Nav -- Settings
6767
cy.getByTestID('user-nav').click()
6868
cy.getByTestID('user-nav-item-about').click()
6969
cy.getByTestID('about-page--header').should('exist')
70-
cy.url().should('contain', 'about')
70+
const url = Cypress.env('dexUrl') === 'OSS' ? 'about' : 'org-settings'
71+
cy.url().should('contain', url)
7172

7273
/** \
7374

src/checkout/SuccessOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SuccessOverlay: FC = () => {
1919
const orgId = useSelector(getOrg)?.id
2020

2121
const handleClick = () => {
22-
history.push(`/orgs/${orgId}/users`)
22+
history.push(`/orgs/${orgId}/members`)
2323
}
2424

2525
return (

src/identity/components/GlobalHeader/OrgDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export const OrgDropdown: FC<Props> = ({activeOrg, orgsList}) => {
3333
{
3434
name: 'Settings',
3535
iconFont: IconFont.CogSolid_New,
36-
href: `/orgs/${activeOrg.id}/about`,
36+
href: `/orgs/${activeOrg.id}/org-settings`,
3737
},
3838
{
3939
name: 'Members',
4040
iconFont: IconFont.Group,
41-
href: `/orgs/${activeOrg.id}/users`,
41+
href: `/orgs/${activeOrg.id}/members`,
4242
},
4343
{
4444
name: 'Usage',

src/organizations/components/OrgNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ const OrgNavigation: FC<Props> = ({activeTab}) => {
4444
text: 'Settings',
4545
id: Tab.About,
4646
enabled: () => CLOUD,
47-
link: `/orgs/${orgID}/about`,
47+
link: `/orgs/${orgID}/org-settings`,
4848
},
4949
{
5050
text: 'Members',
5151
id: Tab.Users,
5252
enabled: () => CLOUD,
53-
link: `/orgs/${orgID}/users`,
53+
link: `/orgs/${orgID}/members`,
5454
},
5555
{
5656
text: 'About',

src/organizations/components/OrgProfileTab/CopyableLabeledData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const CopyableLabeledData: FC<Props> = ({
4848
}
4949

5050
const handleShowEditOverlay = () => {
51-
history.push(`/orgs/${org.id}/about/rename`)
51+
history.push(`/orgs/${org.id}/org-settings/rename`)
5252
}
5353

5454
return (

0 commit comments

Comments
 (0)