@@ -7,13 +7,13 @@ import { DEFAULT_HEADER_HEX_COLOR } from 'src/views/oauth/experiments/PredirectI
77import { OAUTH_PREDIRECT_INSTRUCTION } from 'src/views/oauth/experiments/predirectInstructionsUtils'
88
99describe ( '<OAuthDefault /> PredirectInstructions test' , ( ) => {
10- it ( 'wells fargo can show the instructions for verification/identity' , async ( ) => {
10+ it ( 'Any Bank can show the instructions for verification/identity' , async ( ) => {
1111 const onSignInClick = vi . fn ( )
1212 const onAnalyticsEvent = vi . fn ( )
1313
1414 const institution = {
15- guid : 'INS-f9e8d5f6-b953-da63-32e4-6e88fbe8b250 ' ,
16- name : 'Wells Fargo ' ,
15+ guid : 'INS-123 ' ,
16+ name : 'Any Bank ' ,
1717 testProp : 'testValue' ,
1818 oauth_predirect_instructions : [
1919 OAUTH_PREDIRECT_INSTRUCTION . ACCOUNT_AND_TRANSACTIONS_INSTRUCTION ,
@@ -27,7 +27,7 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
2727 isOauthLoading : false ,
2828 oauthURL : 'testUrl' ,
2929 selectedInstitution : {
30- name : 'Wells Fargo ' ,
30+ name : 'Any Bank ' ,
3131 } ,
3232 } ,
3333 } )
@@ -52,8 +52,8 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
5252 )
5353
5454 // See PredirectInstructions.tsx for the text we are verifying here
55- expect ( screen . getByText ( 'Wells Fargo ' ) ) . toBeInTheDocument ( )
56- expect ( screen . getByText ( 'Log in at Wells Fargo ' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
55+ expect ( screen . getByText ( 'Any Bank ' ) ) . toBeInTheDocument ( )
56+ expect ( screen . getByText ( 'Log in at Any Bank ' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
5757
5858 expect (
5959 screen . getByText ( ( content , element ) => {
@@ -71,13 +71,13 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
7171 expect ( screen . getByText ( 'Profile information' ) ) . toBeInTheDocument ( )
7272 } )
7373
74- it ( 'wells fargo can show instructions for aggregation-only' , async ( ) => {
74+ it ( 'Any Bank can show instructions for aggregation-only' , async ( ) => {
7575 const onSignInClick = vi . fn ( )
7676 const onAnalyticsEvent = vi . fn ( )
7777
7878 const institution = {
79- guid : 'INS-f9e8d5f6-b953-da63-32e4-6e88fbe8b250 ' ,
80- name : 'Wells Fargo ' ,
79+ guid : 'INS-123 ' ,
80+ name : 'Any Bank ' ,
8181 testProp : 'testValue' ,
8282 oauth_predirect_instructions : [
8383 OAUTH_PREDIRECT_INSTRUCTION . ACCOUNT_AND_TRANSACTIONS_INSTRUCTION ,
@@ -90,7 +90,7 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
9090 isOauthLoading : false ,
9191 oauthURL : 'testUrl' ,
9292 selectedInstitution : {
93- name : 'Wells Fargo ' ,
93+ name : 'Any Bank ' ,
9494 } ,
9595 } ,
9696 } )
@@ -115,8 +115,8 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
115115 )
116116
117117 // See PredirectInstructions.tsx for the text we are verifying here
118- expect ( screen . getByText ( 'Wells Fargo ' ) ) . toBeInTheDocument ( )
119- expect ( screen . getByText ( 'Log in at Wells Fargo ' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
118+ expect ( screen . getByText ( 'Any Bank ' ) ) . toBeInTheDocument ( )
119+ expect ( screen . getByText ( 'Log in at Any Bank ' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
120120
121121 expect (
122122 screen . getByText ( ( content , element ) => {
@@ -138,7 +138,7 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
138138
139139 const institution = {
140140 guid : 'INS-test' ,
141- name : 'Test Bank' ,
141+ name : 'Any Bank' ,
142142 oauth_predirect_instructions : [
143143 OAUTH_PREDIRECT_INSTRUCTION . ACCOUNT_AND_TRANSACTIONS_INSTRUCTION ,
144144 OAUTH_PREDIRECT_INSTRUCTION . PROFILE_INFORMATION_INSTRUCTION ,
@@ -152,7 +152,7 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
152152 isOauthLoading : false ,
153153 oauthURL : 'testUrl' ,
154154 selectedInstitution : {
155- name : 'Test Bank' ,
155+ name : 'Any Bank' ,
156156 } ,
157157 } ,
158158 } )
@@ -177,10 +177,10 @@ describe('<OAuthDefault /> PredirectInstructions test', () => {
177177 )
178178
179179 // See PredirectInstructions.tsx for the text we are verifying here
180- const exampleWindowHeader = screen . getByText ( 'Test Bank' ) . closest ( '.institution-panel-header' )
180+ const exampleWindowHeader = screen . getByText ( 'Any Bank' ) . closest ( '.institution-panel-header' )
181181 expect ( exampleWindowHeader ) . toBeInTheDocument ( )
182182 expect ( exampleWindowHeader ) . toHaveStyle ( { backgroundColor : DEFAULT_HEADER_HEX_COLOR } )
183- expect ( screen . getByText ( 'Log in at Test Bank' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
183+ expect ( screen . getByText ( 'Log in at Any Bank' , { selector : 'h2' } ) ) . toBeInTheDocument ( )
184184
185185 expect (
186186 screen . getByText ( ( content , element ) => {
0 commit comments