seed rootless media set
This commit is contained in:
parent
a6236f7fdf
commit
4bfacc58b8
2 changed files with 11 additions and 3 deletions
|
|
@ -11,14 +11,19 @@ class SetSeeder extends Seeder
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
$setRepository = app(SetRepository::class);
|
$setRepository = app(SetRepository::class);
|
||||||
$title = 'Baderech HaAvodah';
|
$baderechTitle = 'Baderech HaAvodah';
|
||||||
|
|
||||||
$set = $setRepository->create(new CreateSetDto(
|
$setRepository->create(new CreateSetDto(
|
||||||
name: $title,
|
name: $baderechTitle,
|
||||||
description: 'Baderech HaAvodah is a way of living - '
|
description: 'Baderech HaAvodah is a way of living - '
|
||||||
. 'a structured path for inner and outer growth, '
|
. 'a structured path for inner and outer growth, '
|
||||||
. 'spiritual refinement, and personal development.',
|
. 'spiritual refinement, and personal development.',
|
||||||
iconImageUrl: '/assets/baderech-haavodah-icon.png',
|
iconImageUrl: '/assets/baderech-haavodah-icon.png',
|
||||||
));
|
));
|
||||||
|
$setRepository->create(new CreateSetDto(
|
||||||
|
name: 'Daily Learning',
|
||||||
|
description: 'Daily learning for steady growth',
|
||||||
|
iconImageUrl: '/assets/daily-learning-icon.svg',
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,11 @@ describe('media page sets', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
cy.contains('[data-cy="media-set-card"]', 'Daily Learning')
|
cy.contains('[data-cy="media-set-card"]', 'Daily Learning')
|
||||||
|
.as('dailyLearningCard')
|
||||||
.should('match', 'article')
|
.should('match', 'article')
|
||||||
.and('not.have.attr', 'href')
|
.and('not.have.attr', 'href')
|
||||||
|
|
||||||
|
cy.get('@dailyLearningCard')
|
||||||
.within(() => {
|
.within(() => {
|
||||||
cy.contains('h2', 'Daily Learning').should('be.visible')
|
cy.contains('h2', 'Daily Learning').should('be.visible')
|
||||||
cy.contains('Daily learning for steady growth').should('be.visible')
|
cy.contains('Daily learning for steady growth').should('be.visible')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue