Mój plik e2e.conf.coffee
jest:Uzyskiwanie błędu: Błąd podczas oczekiwania na kątomierz zsynchronizować ze stroną: {}
exports.config =
baseUrl: 'http://localhost:9001'
specs: [
'e2e/**/*.coffee'
]
framework: 'jasmine'
mam pracę i nasłuchuje na porcie 9001. węzeł projektu
Mój test jest :
describe 'Happy Path', ->
it 'should show the login page', ->
console.log browser
expect(browser.getLocationAbsUrl()).toMatch("/view1");
it 'should fail to login', ->
setTimeout ->
console.log "FAIL!"
, 1200
i błąd, który pojawia się:
Failures:
1) Happy Path should show the login page
Message:
Error: Error while waiting for Protractor to sync with the page: {}
Stacktrace:
Error: Error while waiting for Protractor to sync with the page: {}
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
==== async task ====
WebDriver.executeScript()
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
==== async task ====
Asynchronous test function: it("should show the login page")
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>==== async task ====
Co robię źle?
To pytanie zostało zadane kilka razy w Stackoverflow. po prostu skopiuj i wklej do google-search ... – nilsK
Zrobiłem - odpowiedzi nie dały mi wskazówek – Shamoon
zależy trochę od konfiguracji projektu. jeśli twoja strona logowania jest kanciasta, musisz [waitForAngular] (https://github.com/angular/protractor/blob/master/docs/api.md#protractorprototypewaitforangular), jeśli nie, są wyjątki (musiałbym ponownie google, wystarczy spojrzeć, jak to przeczytam ... teraz nie ma czasu, jutro się obejrzę) powodzenia! – nilsK