Non-angular page opened after a click

后端 未结 2 1860
借酒劲吻你
借酒劲吻你 2020-11-28 14:50

I\'m trying to implement the following test scenario:

  • perform a click on a logo on the page
  • assert there is a new browser window opened (tab in Chrom
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 15:31

    You can set ignoreSynchronization to be false once your verification is done. However, note that ignoreSynchronization is synchronous while everything else (click/get/etc) is asynchronous, so you need to be careful with that. Probably the safest way is to set it to true in beforeEach and false in afterEach, and just test that single logo click in that test.

提交回复
热议问题