File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
versions/develop/pages/BO/shipping/carriers Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export interface BOBasePagePageInterface extends CommonPageInterface {
91
91
getAlertDangerBlockParagraphContent ( page : Page ) : Promise < string > ;
92
92
getAlertInfoBlockParagraphContent ( page : Page ) : Promise < string > ;
93
93
getAlertSuccessBlockContent ( page : Frame | Page ) : Promise < string > ;
94
- getAlertSuccessBlockParagraphContent ( page : Frame | Page ) : Promise < string > ;
94
+ getAlertSuccessBlockParagraphContent ( page : Frame | Page , timeout ?: number ) : Promise < string > ;
95
95
getAllNotificationsNumber ( page : Page ) : Promise < number > ;
96
96
getCurrentEmployeeAvatar ( page : Page ) : Promise < string | null > ;
97
97
getGrowlMessageContent ( page : Page , timeout ?: number ) : Promise < string | null > ;
Original file line number Diff line number Diff line change @@ -1179,8 +1179,8 @@ export default class BOBasePage extends CommonPage implements BOBasePagePageInte
1179
1179
* @param page {Frame|Page} Browser tab
1180
1180
* @return {Promise<string> }
1181
1181
*/
1182
- async getAlertSuccessBlockParagraphContent ( page : Frame | Page ) : Promise < string > {
1183
- await this . elementVisible ( page , this . alertSuccessBlockParagraph , 2000 ) ;
1182
+ async getAlertSuccessBlockParagraphContent ( page : Frame | Page , timeout : number = 2000 ) : Promise < string > {
1183
+ await this . elementVisible ( page , this . alertSuccessBlockParagraph , timeout ) ;
1184
1184
return this . getTextContent ( page , this . alertSuccessBlockParagraph ) ;
1185
1185
}
1186
1186
Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ export default class CommonPage implements CommonPageInterface {
574
574
}
575
575
576
576
// Wait a bit before dropping the element
577
- await page . waitForTimeout ( 500 ) ;
577
+ await page . waitForTimeout ( 2500 ) ;
578
578
await page . mouse . up ( ) ;
579
579
}
580
580
Original file line number Diff line number Diff line change @@ -611,8 +611,9 @@ class BOCarriersPage extends BOBasePage implements BOCarriersPageInterface {
611
611
*/
612
612
async changePosition ( page : Page , actualPosition : number , newPosition : number ) : Promise < string | null > {
613
613
await this . dragAndDropSlowly ( page , this . tableColumnHandle ( actualPosition ) , this . tableBodyRow ( newPosition ) ) ;
614
+ await page . waitForTimeout ( 6000 ) ;
614
615
615
- return this . getAlertSuccessBlockParagraphContent ( page ) ;
616
+ return this . getAlertSuccessBlockParagraphContent ( page , 3000 ) ;
616
617
}
617
618
}
618
619
You can’t perform that action at this time.
0 commit comments