Skip to content

Commit

Permalink
Adjust codeception list test (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Sep 17, 2024
1 parent 2afe984 commit 8a665e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/codeception/acceptance/Paragraphs/ListsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,13 +765,14 @@ public function testListParagraphBasicPageTypesFilter(AcceptanceTester $I) {
'type' => 'stanford_page',
'title' => 'B' . $this->faker->text(15),
'su_basic_page_type' => $type_term->id(),
'created' => time(),
]);

$second_basic_page_entity = $I->createEntity([
'type' => 'stanford_page',
'title' => 'A' . $this->faker->text(15),
'su_basic_page_type' => $type_term->id(),
'created' => time() - 120,
'created' => time() - 12000,
]);

$I->amOnPage("/node/{$basic_page_entity->id()}/edit");
Expand Down Expand Up @@ -801,7 +802,7 @@ public function testListParagraphBasicPageTypesFilter(AcceptanceTester $I) {
'su_basic_page_type' => $type_term->id(),
'su_page_description' => $this->faker->text,
'layout_selection' => 'stanford_basic_page_full',
'created' => time() - 1000,
'created' => time() - 100000,
]);
$I->amOnPage($layout_changed_page->toUrl('edit-form')->toString());
$I->click('Save');
Expand Down Expand Up @@ -873,6 +874,7 @@ protected function getNodeWithList(AcceptanceTester $I, array $view) {
'target_id' => $paragraph->id(),
'entity' => $paragraph,
],
'created' => time(),
]);

return $node;
Expand Down

0 comments on commit 8a665e9

Please sign in to comment.