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 {
9191 getAlertDangerBlockParagraphContent ( page : Page ) : Promise < string > ;
9292 getAlertInfoBlockParagraphContent ( page : Page ) : Promise < string > ;
9393 getAlertSuccessBlockContent ( page : Frame | Page ) : Promise < string > ;
94- getAlertSuccessBlockParagraphContent ( page : Frame | Page ) : Promise < string > ;
94+ getAlertSuccessBlockParagraphContent ( page : Frame | Page , timeout ?: number ) : Promise < string > ;
9595 getAllNotificationsNumber ( page : Page ) : Promise < number > ;
9696 getCurrentEmployeeAvatar ( page : Page ) : Promise < string | null > ;
9797 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
11791179 * @param page {Frame|Page} Browser tab
11801180 * @return {Promise<string> }
11811181 */
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 ) ;
11841184 return this . getTextContent ( page , this . alertSuccessBlockParagraph ) ;
11851185 }
11861186
Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ export default class CommonPage implements CommonPageInterface {
574574 }
575575
576576 // Wait a bit before dropping the element
577- await page . waitForTimeout ( 500 ) ;
577+ await page . waitForTimeout ( 2500 ) ;
578578 await page . mouse . up ( ) ;
579579 }
580580
Original file line number Diff line number Diff line change @@ -611,8 +611,9 @@ class BOCarriersPage extends BOBasePage implements BOCarriersPageInterface {
611611 */
612612 async changePosition ( page : Page , actualPosition : number , newPosition : number ) : Promise < string | null > {
613613 await this . dragAndDropSlowly ( page , this . tableColumnHandle ( actualPosition ) , this . tableBodyRow ( newPosition ) ) ;
614+ await page . waitForTimeout ( 6000 ) ;
614615
615- return this . getAlertSuccessBlockParagraphContent ( page ) ;
616+ return this . getAlertSuccessBlockParagraphContent ( page , 3000 ) ;
616617 }
617618}
618619
You can’t perform that action at this time.
0 commit comments