velesin / jasmine-jquery

jQuery matchers and fixture loader for Jasmine framework
MIT License
1.89k stars 347 forks source link

HTML Fixtures also possible as external hyperlink? #259

Open StefanPerez opened 9 years ago

StefanPerez commented 9 years ago

I got a question regarding using the HTML fixtures option. I know that I can post inline code to the Fixtures function and it will work perfectly. But in my situation I need actually to point to a website on my server (which is a asp page).

It is not possible to enter a full hyperlink in the loadFixtures() function.

I was wondering is there another way how I could point to an external asp page on my server which then will be used as a HTML fixture, something like: loadFixtures('http://localhost/test/default.aspx?folder=unit')

freeman-g commented 7 years ago

I have the same problem/need.

I am trying to setup automated DOM and Javascript testing for a legacy app which has server side rendering via JSPs.

I would like to use jasmine-jquery to test DOM manipulation but I cannot load HTML files directly since they need to be rendered by the server first. It would be great if I could loadFixture over http instead of from the file system.

Thanks!