@@ -45,7 +45,7 @@ test.describe(`${process.env.E2E_TEST_ENV} - Authentication flow verification @s
45
45
landingPage,
46
46
dashboardPage,
47
47
} , testInfo ) => {
48
- // speed up test by ignoring non- necessary requests
48
+ // speed up test by ignore non necessary requests
49
49
await page . route ( / ( a n a l y t i c s ) / , async ( route ) => {
50
50
await route . abort ( ) ;
51
51
} ) ;
@@ -68,65 +68,4 @@ test.describe(`${process.env.E2E_TEST_ENV} - Authentication flow verification @s
68
68
} ,
69
69
) ;
70
70
} ) ;
71
-
72
- test ( "Verify successful silent authentication with existing user" , async ( {
73
- page,
74
- authPage,
75
- dashboardPage,
76
- } , testInfo ) => {
77
- // speed up test by ignoring non-necessary requests
78
- await page . route ( / ( a n a l y t i c s ) / , async ( route ) => {
79
- await route . abort ( ) ;
80
- } ) ;
81
-
82
- // login to FxA
83
- await authPage . signInToFxA (
84
- process . env . E2E_TEST_ACCOUNT_EMAIL as string ,
85
- process . env . E2E_TEST_ACCOUNT_PASSWORD as string ,
86
- ) ;
87
-
88
- // start authentication flow
89
- await authPage . initSilentAuth ( ) ;
90
-
91
- // assert successful login
92
- await expect ( dashboardPage . fixedTab ) . toBeVisible ( ) ;
93
- await expect ( dashboardPage . actionNeededTab ) . toBeVisible ( ) ;
94
-
95
- await testInfo . attach (
96
- `${ process . env . E2E_TEST_ENV } -silent-authentication-monitor-dashboard.png` ,
97
- {
98
- body : await page . screenshot ( ) ,
99
- contentType : "image/png" ,
100
- } ,
101
- ) ;
102
- } ) ;
103
-
104
- test ( "Verify failed silent authentication with existing user" , async ( {
105
- page,
106
- authPage,
107
- dashboardPage,
108
- } , testInfo ) => {
109
- // speed up test by ignoring non-necessary requests
110
- await page . route ( / ( a n a l y t i c s ) / , async ( route ) => {
111
- await route . abort ( ) ;
112
- } ) ;
113
-
114
- // start authentication flow
115
- await authPage . initSilentAuth ( ) ;
116
-
117
- // sign in
118
- await authPage . signIn ( process . env . E2E_TEST_ACCOUNT_EMAIL as string ) ;
119
-
120
- // assert successful login
121
- await expect ( dashboardPage . fixedTab ) . toBeVisible ( ) ;
122
- await expect ( dashboardPage . actionNeededTab ) . toBeVisible ( ) ;
123
-
124
- await testInfo . attach (
125
- `${ process . env . E2E_TEST_ENV } -silent-authentication-monitor-dashboard.png` ,
126
- {
127
- body : await page . screenshot ( ) ,
128
- contentType : "image/png" ,
129
- } ,
130
- ) ;
131
- } ) ;
132
71
} ) ;
0 commit comments