test demo root pdf
This commit is contained in:
parent
bb80d624c3
commit
1b63829b68
2 changed files with 2 additions and 4 deletions
|
|
@ -23,6 +23,7 @@ class DemoSeedDataTest extends TestCase
|
|||
$childElements = $elementRepository->findByParentElement($rootElement);
|
||||
|
||||
$this->assertSame('', $rootElement->getRichText());
|
||||
$this->assertNull($rootElement->getPdfPath());
|
||||
$this->assertNull($rootElement->getYoutubeUrl());
|
||||
$this->assertCount(6, $childElements);
|
||||
$this->assertSame(
|
||||
|
|
|
|||
|
|
@ -48,10 +48,7 @@ describe('media page sets', () => {
|
|||
cy.get('[data-cy="element-rich-text"]').should('not.exist')
|
||||
cy.get('[data-cy="element-youtube-embed"]')
|
||||
.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')
|
||||
cy.get('[data-cy="element-pdf-link"]').should('not.exist')
|
||||
cy.get('[data-cy="child-element-list"]').should('be.visible')
|
||||
cy.get('[data-cy="child-element-list"]')
|
||||
.should(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue