Я слежу за документами слово за словом, то есть начинаю мой Basic.spec.js
с uiveri5 --debug
(используя локальный браузер по умолчанию) и у меня есть оператор debugger;
в некотором it()
в тестовом коде , Тем не менее, тесты проходят, проходя этот тест, и не останавливаются ни в каком случае в любом отладчике.
conf.js
:
exports.config = {
profile: "integration",
specs: "./*spec.js",
baseUrl: 'http://localhost:2027/...'
};
Basic.spec.js
:
describe('Basic', function () {
it('1 should load the app', function() {
expect(browser.getTitle()).toBe('Hurz,');
});
it('2 should open detail screen', function() {
debugger;
element(by.control({viewName: ..., id: ...})).click();
let name = element(by.control({viewName: ..., id: ...}));
expect(name.getText()).toBe("");
});
})
Консоль:
$ uiveri5 --debug
Starting uiveri5 with node arguments --inspect
Debugger listening on ws://127.0.0.1:9229/2584e64b-5d72-41f1-99ea-a51c8f073245
For help, see: https://nodejs.org/en/docs/inspector
INFO: @ui5/uiveri5 v1.41.2
INFO: Resolving specs
INFO: Check for latest major version of: chromedriver
(node:55071) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
INFO: Found latest major version of chromedriver: 79
INFO: Check for latest version of: chromedriver
INFO: Found latest version of chromedriver: 79.0.3945.36
INFO: Found correct binary locally: /usr/local/lib/node_modules/@ui5/uiveri5/selenium/chromedriver-79.0.3945.36
INFO: Executing 1 specs
[15:34:04] I/launcher - Running 1 instances of WebDriver
INFO: Suite started: Basic
INFO: Spec started: 1 should load the app
INFO: Opening: http://localhost:2027/...
INFO: UI5 Timestamp: 201910301504
INFO: Spec finished: 1 should load the app with status: PASSED
INFO: Spec started: 2 should open detail screen
INFO: Spec finished: 2 should open detail screen with status: PASSED
...
Чего мне не хватает?