I have a website under test which is built with Angular 4.
My protractor tests won't run on them unless I specify
waitForAngularEnabled(false) or ignoreSynchronization = true.
I have verified with the developer and the tech lead that the site is fully
Angular.
Developer said that even though the site is developed with Angular, to the
browser it is sent as a 'bundle'. (I am not sure what it means in dev
terms).
*Below is my spec file:*
describe('****** Home Page Tests', function() { var frontpage =
require("./Front_page.js"); beforeEach(function() {
browser.waitForAngularEnabled(true) browser.get('mytesturl',50000);
frontpage.Front_page_link.click() }) it('Should go to **** page', function(){
frontpage.Journey_button.click() browser.getCurrentUrl().then(function(url){
expect(url).toContain('journey/get-started') }) }) });
*Below is my config file:*
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
exports.config = {
seleniumAddress : 'http://localhost:4444/wd/hub',
restartBrowserBetweenTests: false,
//framework: 'jasmine2',
specs : [ 'spec.js' ],
onPrepare : function() {
browser.driver.manage().window().maximize()
jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
savePath : 'target/screenshots'
}));
},
allScriptsTimeout : 50000,
jasmineNodeOpts : {
showColors : true,
defaultTimeoutInterval : 100000,
isVerbose : true
}
};
*This is the error I get:*
Failed: script timeout: result was not received in 50 seconds
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.