尝试缩短'中的代码行。块。 并希望代替n-number'期待'等待/期望不同的元素在一个'期望'行:
我试着这样:
await expect([geo.tag_babal, geo.tag_rural]).toAppear(5000,'Detailed tags are absent in a header')
之类的东西:
detailedArray = [this.rura_filter, this.even_filter]
规格:
await expect(geo.detailedArray).toAppear(5000,'Detailed tags are absent in a header')
但得到了这个错误:
Failed: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
这样做的最佳做法是什么?