File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ describe("App", () => {
11
11
expect ( screen . getByText ( "Certificates" ) ) . toBeVisible ( ) ;
12
12
expect ( screen . getByText ( "Help" ) ) . toBeVisible ( ) ;
13
13
expect ( screen . getByRole ( "banner" , { name : "App header" } ) ) . toBeVisible ( ) ;
14
- expect (
15
- screen . getByRole ( "heading" , { name : / c o d e G a t e d a s h b o a r d / i } ) ,
16
- ) . toBeVisible ( ) ;
14
+ expect ( screen . getByRole ( "heading" , { name : / c o d e G a t e / i } ) ) . toBeVisible ( ) ;
17
15
18
16
await userEvent . click ( screen . getByText ( "Certificates" ) ) ;
19
17
@@ -79,19 +77,15 @@ describe("App", () => {
79
77
await userEvent . click ( screen . getByText ( "Help" ) ) ;
80
78
81
79
await waitFor ( ( ) =>
82
- expect (
83
- screen . getByRole ( "link" , { name : / c o d e G a t e d a s h b o a r d / i } ) ,
84
- ) . toBeVisible ( ) ,
80
+ expect ( screen . getByRole ( "link" , { name : / c o d e G a t e / i } ) ) . toBeVisible ( ) ,
85
81
) ;
86
82
} ) ;
87
83
88
84
it ( "should render workspaces dropdown" , async ( ) => {
89
85
render ( < App /> ) ;
90
86
91
87
await waitFor ( ( ) =>
92
- expect (
93
- screen . getByRole ( "link" , { name : "CodeGate Dashboard" } ) ,
94
- ) . toBeVisible ( ) ,
88
+ expect ( screen . getByRole ( "link" , { name : "CodeGate" } ) ) . toBeVisible ( ) ,
95
89
) ;
96
90
97
91
const workspaceSelectionButton = screen . getByRole ( "button" , {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function HomeLink() {
11
11
return (
12
12
< Link to = "/" >
13
13
< h1 className = "text-2xl text-primary font-title w-max flex font-semibold" >
14
- CodeGate Dashboard
14
+ CodeGate
15
15
</ h1 >
16
16
</ Link >
17
17
) ;
You can’t perform that action at this time.
0 commit comments