@@ -82,30 +82,24 @@ test.describe('special-error', () => {
82
82
const special = SpecialErrorPage . create ( page , workerInfo ) ;
83
83
await special . overrideTestLinks ( ) ;
84
84
85
- const expectedURL = `${ phishingMalwareHelpPageURL } ` ;
86
-
87
85
await special . openPage ( { errorId : 'phishing' } ) ;
88
- await special . opensNewPage ( 'Learn more' , expectedURL ) ;
86
+ await special . opensNewPage ( 'Learn more' , phishingMalwareHelpPageURL ) ;
89
87
} ) ;
90
88
91
89
test ( 'opens malware help page in a new window' , async ( { page } , workerInfo ) => {
92
90
const special = SpecialErrorPage . create ( page , workerInfo ) ;
93
91
await special . overrideTestLinks ( ) ;
94
92
95
- const expectedURL = `${ phishingMalwareHelpPageURL } ` ;
96
-
97
93
await special . openPage ( { errorId : 'malware' } ) ;
98
- await special . opensNewPage ( 'Learn more' , expectedURL ) ;
94
+ await special . opensNewPage ( 'Learn more' , phishingMalwareHelpPageURL ) ;
99
95
} ) ;
100
96
101
97
test ( 'opens scam help page in a new window' , async ( { page } , workerInfo ) => {
102
98
const special = SpecialErrorPage . create ( page , workerInfo ) ;
103
99
await special . overrideTestLinks ( ) ;
104
100
105
- const expectedURL = `${ phishingMalwareHelpPageURL } ` ;
106
-
107
101
await special . openPage ( { errorId : 'scam' } ) ;
108
- await special . opensNewPage ( 'Learn more' , expectedURL ) ;
102
+ await special . opensNewPage ( 'Learn more' , phishingMalwareHelpPageURL ) ;
109
103
} ) ;
110
104
111
105
test ( 'opens report form in a new window' , async ( { page } , workerInfo ) => {
0 commit comments