Skip to content

Commit

Permalink
Reinstate all react tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 28, 2022
1 parent 8985d42 commit 2740d17
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions code/cypress/generated/addon-docs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,22 @@ describe('addon-docs', () => {

skipOn('vue3', () => {
skipOn('html', () => {
skipOn('react', () => {
skipOn('cra', () => {
skipOn('react_legacy_root_api', () => {
it('should provide source snippet', () => {
cy.getDocsElement()
.find('.docblock-code-toggle')
.each(($div) => {
cy.wrap($div)
.should('contain.text', 'Show code')
// use force click so cypress does not automatically scroll, making the source block visible on this step
.click({ force: true });
});
it('should provide source snippet', () => {
cy.getDocsElement()
.find('.docblock-code-toggle')
.each(($div) => {
cy.wrap($div)
.should('contain.text', 'Show code')
// use force click so cypress does not automatically scroll, making the source block visible on this step
.click({ force: true });
});

cy.getDocsElement()
.find('pre.prismjs')
.each(($div) => {
const text = $div.text();
expect(text).not.match(/^\(args\) => /);
});
});
cy.getDocsElement()
.find('pre.prismjs')
.each(($div) => {
const text = $div.text();
expect(text).not.match(/^\(args\) => /);
});
});
});
});
});
Expand Down

0 comments on commit 2740d17

Please sign in to comment.