test introduction pdf
This commit is contained in:
parent
6cb215a7bf
commit
c1f6437769
2 changed files with 8 additions and 1 deletions
|
|
@ -75,6 +75,10 @@ class DemoSeedDataTest extends TestCase
|
||||||
$this->expectedIntroductionRichText(),
|
$this->expectedIntroductionRichText(),
|
||||||
$childElements[0]->getRichText(),
|
$childElements[0]->getRichText(),
|
||||||
);
|
);
|
||||||
|
$this->assertSame(
|
||||||
|
'/assets/pdfs/baderech.pdf',
|
||||||
|
$childElements[0]->getPdfPath(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function serializeChildElements(array $childElements): array
|
private function serializeChildElements(array $childElements): array
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,9 @@ describe('media page sets', () => {
|
||||||
.and('contain.text', 'So many are Hashkafikly homeless')
|
.and('contain.text', 'So many are Hashkafikly homeless')
|
||||||
.and('contain.text', 'the life we were created for.')
|
.and('contain.text', 'the life we were created for.')
|
||||||
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
|
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
|
||||||
cy.get('[data-cy="element-pdf-link"]').should('not.exist')
|
cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
|
||||||
|
.should('be.visible')
|
||||||
|
.and('have.attr', 'href', '/assets/pdfs/baderech.pdf')
|
||||||
|
.and('have.attr', 'target', '_blank')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue