我遇到這個問題:茉莉花放入答應
Expected 2 to equal 'Promise::6492 {[[PromiseStatus]]: "pending"}1'.
我的代碼如下所示:
規格:
this.allRows = element.all(by.name('row'));
茉莉花
var prevRowCount = this.allRows().count()
this.addRow();
expect(this.allRows.count()).toEqual(prevRowCount+1);
如何我可以添加一個this.allRows.count ()返回?