File tree 1 file changed +2
-3
lines changed
plugins/backstage-plugin-coder/src/components/CoderAuthForm
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ describe(`${CoderAuthForm.name}`, () => {
77
77
78
78
const user = userEvent . setup ( ) ;
79
79
const ejectButton = await screen . findByRole ( 'button' , {
80
- name : / E j e c t t o k e n / ,
80
+ name : / U n l i n k C o d e r a c c o u n t / ,
81
81
} ) ;
82
82
83
83
await user . click ( ejectButton ) ;
@@ -87,7 +87,6 @@ describe(`${CoderAuthForm.name}`, () => {
87
87
88
88
describe ( 'Token submission form' , ( ) => {
89
89
it ( "Is displayed when the token either doesn't exist or is definitely not valid" , async ( ) => {
90
- const tokenFormMatcher = / P l e a s e e n t e r a n e w t o k e n / ;
91
90
const statusesForInvalidUser : readonly CoderAuthStatus [ ] = [
92
91
'invalid' ,
93
92
'tokenMissing' ,
@@ -96,7 +95,7 @@ describe(`${CoderAuthForm.name}`, () => {
96
95
for ( const authStatus of statusesForInvalidUser ) {
97
96
const { unmount } = await renderAuthWrapper ( { authStatus } ) ;
98
97
const form = screen . getByRole ( 'form' , {
99
- name : tokenFormMatcher ,
98
+ name : / A u t h e n t i c a t e w i t h C o d e r / ,
100
99
} ) ;
101
100
102
101
expect ( form ) . toBeInTheDocument ( ) ;
You can’t perform that action at this time.
0 commit comments