Skip to content

Commit

Permalink
test: add generated image test
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Jan 7, 2025
1 parent c517e22 commit 0e9c8ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cypress/e2e/combo.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ describe('Combo Detail Page', () => {

cy.get('#ck-buy-this-combo').should('have.attr', 'href').and('include', 'https://www.cardkingdom.com/builder');
});

it('provides combo preview', () => {
cy.visit('/combo/450/');

cy.get('meta[property="og:image"]').each(($img) => {
const src = $img.attr('content');
cy.wrap(src).should('not.be', undefined);
cy.request(src!).its('status').should('eq', 200);
});
});
});

export {};

0 comments on commit 0e9c8ad

Please sign in to comment.