import {getHtmlPage, expectHtmlResponse} from './utils/integration-test-utils'; describe('qa etf-us pages', () => { let testPages = [ 'http://rcovlnx0192:8322/etf-us/investor/products/documents?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/backtested-performance?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/performance?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/price-and-distribution?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/portfolio?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/overview?FundID=18000', 'http://rcovlnx0192:8322/etf-us/investor/products/price-and-performance' ]; testPages.forEach((testPage) => { it(testPage + ' should return valid HTML', done => { getHtmlPage(testPage) .then(response => { expectHtmlResponse(response); }) .then(done) .catch((e) => { expect(e).toBeNull(); done(); }); }); }); }); describe('qa etf-gb pages', () => { let testPages = [ 'http://rcovlnx0192:8322/etf-gb/investor/products/documents?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/backtested-performance?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/performance?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/price-and-distribution?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/portfolio?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/overview?FundID=21412', 'http://rcovlnx0192:8322/etf-gb/investor/products/price-and-performance' ]; testPages.forEach((testPage) => { it(testPage + ' should return valid HTML', done => { getHtmlPage(testPage) .then(response => { expectHtmlResponse(response); }) .then(done) .catch((e) => { expect(e).toBeNull(); done(); }); }); }); }); describe('qa etf-de pages', () => { let testPages = [ 'http://rcovlnx0192:8322/etf-de/privatanleger/products/documents?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/backtested-performance?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/performance?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/price-and-distribution?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/portfolio?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/overview?FundID=25800', 'http://rcovlnx0192:8322/etf-de/privatanleger/products/price-and-performance' ]; testPages.forEach((testPage) => { it(testPage + ' should return valid HTML', done => { getHtmlPage(testPage) .then(response => { expectHtmlResponse(response); }) .then(done) .catch((e) => { expect(e).toBeNull(); done(); }); }); }); }); describe('qa en-gb pages', () => { let testPages = [ 'http://rcovlnx0192:8322/en-gb/investor/products/documents?FundID=18318', 'http://rcovlnx0192:8322/en-gb/investor/products/performance?FundID=18318', 'http://rcovlnx0192:8322/en-gb/investor/products/price-and-distribution?FundID=18318', 'http://rcovlnx0192:8322/en-gb/investor/products/portfolio?FundID=18318', 'http://rcovlnx0192:8322/en-gb/investor/products/overview?FundID=18318', 'http://rcovlnx0192:8322/en-gb/investor/products/price-and-performance' ]; testPages.forEach((testPage) => { it(testPage + ' should return valid HTML', done => { getHtmlPage(testPage) .then(response => { expectHtmlResponse(response); }) .then(done) .catch((e) => { expect(e).toBeNull(); done(); }); }); }); });