t.it('Should be able to load website', function (t) {
t.chain({
setUrl: '/workspace/main/index.html'
},
t.expect(1).toBe(1)
)
});
Support Forum
Perhaps "earlySetup()" is what you are looking for? https://www.bryntum.com/docs/siesta/#!/ ... earlySetup
Read the API documentation
Switching to this function causes my Test to go through the chain before the webpage is ready.nickolay wrote: ↑Mon Mar 11, 2019 9:23 am Perhaps "earlySetup()" is what you are looking for? https://www.bryntum.com/docs/siesta/#!/ ... earlySetup
Note: This is only after making a single change of the function name from setup to earlySetup in my override class. I can see in the siesta UI that it jumps through the chain even before the site loads in the preview window.
Class('MyProject.MyTestClass', {
isa : Siesta.Test.Browser,
override : {
earlySetup : function (callback, errback) {
this.SUPER(function () {
//We want authentication before every Test
Ext.Ajax.request({
url: '/auth/login',
method: 'POST',
params: {
username: 'username',
password: 'password'
},
success: function (res) {
callback();
},
failure: function () {
errback('Login Failed');
}
});
}, errback)
}
}
})
With `setUrl` you need `enablePageRedirect`: https://www.bryntum.com/docs/siesta/#!/ ... geRedirect
But I'd recommend to use `pageUrl` instead, what was the issue with it again?
But I'd recommend to use `pageUrl` instead, what was the issue with it again?
Read the API documentation