test: Add test for CORS

This commit is contained in:
Lokesh Dhakar
2019-08-24 18:59:26 -07:00
parent 29e96fe72b
commit c9e6563a44
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
describe('cross domain images with liberal CORS policy', function() {
it('load', function() {
cy.visit('http://localhost:8080/cypress/test-pages/cors.html');
cy.get('#result').should(($el) => {
const count = $el.text().split(',').length
expect(count).to.equal(3);
});
})
});