Reinstate all react tests

This commit is contained in:
Tom Coleman 2022-07-19 16:48:40 +10:00
parent 8985d42448
commit 2740d17e1d

View File

@ -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 });
});
cy.getDocsElement()
.find('pre.prismjs')
.each(($div) => {
const text = $div.text();
expect(text).not.match(/^\(args\) => /);
});
});
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\) => /);
});
});
});
});
});