Isolation of actions and tests
问题 I try to refactor my code. I know that if I have several expectations they should be isolate in 'it'. I try to understand how I can write instead this: describe('my scenario should make', function () { var config = browser.params; var url = config.listOfReferencesUrl, grid, numberField; it('test1', function () { browser.get(url); browser.executeScript("icms.go('WEB_INQ_PROC', 'InquiryList', null, 0)"); grid = psGrid(by.css("table[class='n-grid']")); numberField = grid.getQuickFilter(1);