@@ -21,13 +21,13 @@ describe('SwitchOrganization', function () {
21
21
expect ( screen . getByRole ( 'list' ) ) . toBeInTheDocument ( ) ;
22
22
23
23
expect ( screen . getByText ( 'Organization 1' ) ) . toBeInTheDocument ( ) ;
24
- expect ( screen . getByRole ( 'link' , { name : 'org slug Organization 1' } ) ) . toHaveAttribute (
24
+ expect ( screen . getByRole ( 'link' , { name : 'OS Organization 1' } ) ) . toHaveAttribute (
25
25
'href' ,
26
26
'/organizations/org-slug/issues/'
27
27
) ;
28
28
29
29
expect ( screen . getByText ( 'Organization 2' ) ) . toBeInTheDocument ( ) ;
30
- expect ( screen . getByRole ( 'link' , { name : 'org2 Organization 2' } ) ) . toHaveAttribute (
30
+ expect ( screen . getByRole ( 'link' , { name : 'O Organization 2' } ) ) . toHaveAttribute (
31
31
'href' ,
32
32
'/organizations/org2/issues/'
33
33
) ;
@@ -57,11 +57,11 @@ describe('SwitchOrganization', function () {
57
57
58
58
expect ( screen . getByRole ( 'list' ) ) . toBeInTheDocument ( ) ;
59
59
60
- const org1Link = screen . getByRole ( 'link' , { name : 'org1 Organization 1' } ) ;
60
+ const org1Link = screen . getByRole ( 'link' , { name : 'O Organization 1' } ) ;
61
61
expect ( org1Link ) . toBeInTheDocument ( ) ;
62
62
expect ( org1Link ) . toHaveAttribute ( 'href' , '/organizations/org1/issues/' ) ;
63
63
64
- const org2Link = screen . getByRole ( 'link' , { name : 'org2 Organization 2' } ) ;
64
+ const org2Link = screen . getByRole ( 'link' , { name : 'O Organization 2' } ) ;
65
65
expect ( org2Link ) . toBeInTheDocument ( ) ;
66
66
expect ( org2Link ) . toHaveAttribute (
67
67
'href' ,
@@ -92,11 +92,11 @@ describe('SwitchOrganization', function () {
92
92
93
93
expect ( screen . getByRole ( 'list' ) ) . toBeInTheDocument ( ) ;
94
94
95
- const org1Link = screen . getByRole ( 'link' , { name : 'org1 Organization 1' } ) ;
95
+ const org1Link = screen . getByRole ( 'link' , { name : 'O Organization 1' } ) ;
96
96
expect ( org1Link ) . toBeInTheDocument ( ) ;
97
97
expect ( org1Link ) . toHaveAttribute ( 'href' , '/organizations/org1/issues/' ) ;
98
98
99
- const org2Link = screen . getByRole ( 'link' , { name : 'org2 Organization 2' } ) ;
99
+ const org2Link = screen . getByRole ( 'link' , { name : 'O Organization 2' } ) ;
100
100
expect ( org2Link ) . toBeInTheDocument ( ) ;
101
101
expect ( org2Link ) . toHaveAttribute ( 'href' , '/organizations/org2/issues/' ) ;
102
102
jest . useRealTimers ( ) ;
@@ -128,7 +128,7 @@ describe('SwitchOrganization', function () {
128
128
129
129
expect ( screen . getByRole ( 'list' ) ) . toBeInTheDocument ( ) ;
130
130
131
- const org1Link = screen . getByRole ( 'link' , { name : 'org1 Organization 1' } ) ;
131
+ const org1Link = screen . getByRole ( 'link' , { name : 'O Organization 1' } ) ;
132
132
expect ( org1Link ) . toBeInTheDocument ( ) ;
133
133
// Current hostname in the URL is expected to be org2.sentry.io, so we need to make use of sentryUrl to link to an
134
134
// organization that does not support customer domains.
@@ -137,7 +137,7 @@ describe('SwitchOrganization', function () {
137
137
'https://sentry.io/organizations/org1/issues/'
138
138
) ;
139
139
140
- const org2Link = screen . getByRole ( 'link' , { name : 'org2 Organization 2' } ) ;
140
+ const org2Link = screen . getByRole ( 'link' , { name : 'O Organization 2' } ) ;
141
141
expect ( org2Link ) . toBeInTheDocument ( ) ;
142
142
expect ( org2Link ) . toHaveAttribute (
143
143
'href' ,
@@ -180,11 +180,11 @@ describe('SwitchOrganization', function () {
180
180
181
181
expect ( screen . getByRole ( 'list' ) ) . toBeInTheDocument ( ) ;
182
182
183
- const org1Link = screen . getByRole ( 'link' , { name : 'org1 Organization 1' } ) ;
183
+ const org1Link = screen . getByRole ( 'link' , { name : 'O Organization 1' } ) ;
184
184
expect ( org1Link ) . toBeInTheDocument ( ) ;
185
185
expect ( org1Link ) . toHaveAttribute ( 'href' , '/organizations/org1/issues/' ) ;
186
186
187
- const org3Link = screen . getByRole ( 'link' , { name : 'org3 Organization 3' } ) ;
187
+ const org3Link = screen . getByRole ( 'link' , { name : 'O Organization 3' } ) ;
188
188
expect ( org3Link ) . toBeInTheDocument ( ) ;
189
189
expect ( org3Link ) . toHaveAttribute (
190
190
'href' ,
0 commit comments