File tree 5 files changed +17
-11
lines changed
site/src/modules/dashboard/Navbar 5 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
52
52
/>
53
53
}
54
54
>
55
- Deployment
55
+ Administration
56
56
</ Button >
57
57
</ PopoverTrigger >
58
58
@@ -128,7 +128,7 @@ const DeploymentDropdownContent: FC<DeploymentDropdownProps> = ({
128
128
css = { styles . menuItem }
129
129
onClick = { onPopoverClose }
130
130
>
131
- Auditing
131
+ Audit Logs
132
132
</ MenuItem >
133
133
) }
134
134
{ canViewHealth && (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ describe("Navbar", () => {
22
22
} ) ,
23
23
) ;
24
24
render ( < App /> ) ;
25
- const deploymentMenu = await screen . findByText ( "Deployment " ) ;
25
+ const deploymentMenu = await screen . findByText ( "Administration " ) ;
26
26
await userEvent . click ( deploymentMenu ) ;
27
27
await waitFor (
28
28
( ) => {
@@ -37,7 +37,7 @@ describe("Navbar", () => {
37
37
// by default, user is an Admin with permission to see the audit log,
38
38
// but is unlicensed so not entitled to see the audit log
39
39
render ( < App /> ) ;
40
- const deploymentMenu = await screen . findByText ( "Deployment " ) ;
40
+ const deploymentMenu = await screen . findByText ( "Administration " ) ;
41
41
await userEvent . click ( deploymentMenu ) ;
42
42
await waitFor (
43
43
( ) => {
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ type Story = StoryObj<typeof NavbarView>;
26
26
export const ForAdmin : Story = {
27
27
play : async ( { canvasElement } ) => {
28
28
const canvas = within ( canvasElement ) ;
29
- await userEvent . click ( canvas . getByRole ( "button" , { name : "Deployment" } ) ) ;
29
+ await userEvent . click (
30
+ canvas . getByRole ( "button" , { name : "Administration" } ) ,
31
+ ) ;
30
32
} ,
31
33
} ;
32
34
@@ -41,7 +43,9 @@ export const ForAuditor: Story = {
41
43
} ,
42
44
play : async ( { canvasElement } ) => {
43
45
const canvas = within ( canvasElement ) ;
44
- await userEvent . click ( canvas . getByRole ( "button" , { name : "Deployment" } ) ) ;
46
+ await userEvent . click (
47
+ canvas . getByRole ( "button" , { name : "Administration" } ) ,
48
+ ) ;
45
49
} ,
46
50
} ;
47
51
@@ -56,7 +60,9 @@ export const ForOrgAdmin: Story = {
56
60
} ,
57
61
play : async ( { canvasElement } ) => {
58
62
const canvas = within ( canvasElement ) ;
59
- await userEvent . click ( canvas . getByRole ( "button" , { name : "Deployment" } ) ) ;
63
+ await userEvent . click (
64
+ canvas . getByRole ( "button" , { name : "Administration" } ) ,
65
+ ) ;
60
66
} ,
61
67
} ;
62
68
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ describe("NavbarView", () => {
69
69
canViewAuditLog
70
70
/> ,
71
71
) ;
72
- const deploymentMenu = await screen . findByText ( "Deployment " ) ;
72
+ const deploymentMenu = await screen . findByText ( "Administration " ) ;
73
73
await userEvent . click ( deploymentMenu ) ;
74
74
const userLink = await screen . findByText ( navLanguage . users ) ;
75
75
expect ( ( userLink as HTMLAnchorElement ) . href ) . toContain ( "/users" ) ;
@@ -88,7 +88,7 @@ describe("NavbarView", () => {
88
88
canViewAuditLog
89
89
/> ,
90
90
) ;
91
- const deploymentMenu = await screen . findByText ( "Deployment " ) ;
91
+ const deploymentMenu = await screen . findByText ( "Administration " ) ;
92
92
await userEvent . click ( deploymentMenu ) ;
93
93
const auditLink = await screen . findByText ( navLanguage . audit ) ;
94
94
expect ( ( auditLink as HTMLAnchorElement ) . href ) . toContain ( "/audit" ) ;
@@ -107,7 +107,7 @@ describe("NavbarView", () => {
107
107
canViewAuditLog
108
108
/> ,
109
109
) ;
110
- const deploymentMenu = await screen . findByText ( "Deployment " ) ;
110
+ const deploymentMenu = await screen . findByText ( "Administration " ) ;
111
111
await userEvent . click ( deploymentMenu ) ;
112
112
const deploymentSettingsLink = await screen . findByText (
113
113
navLanguage . deployment ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const Language = {
31
31
workspaces : "Workspaces" ,
32
32
templates : "Templates" ,
33
33
users : "Users" ,
34
- audit : "Auditing " ,
34
+ audit : "Audit Logs " ,
35
35
deployment : "Settings" ,
36
36
} ;
37
37
You can’t perform that action at this time.
0 commit comments