Skip to content

Commit

Permalink
fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imonroe committed Aug 20, 2024
1 parent 4f9576b commit 3533307
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/codeception/acceptance/Content/BasicPageCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function testDeletedMenuItems(AcceptanceTester $I) {
$I->amOnPage($node->toUrl('delete-form')->toString());
$I->click('Delete');
$I->runDrush('cr');
$I->wait(5);
$I->amOnPage('/');
$I->cantSeeLink($node_title);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/codeception/acceptance/Content/EventsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function testListIntro(AcceptanceTester $I) {
$I->canSee($term->label(), 'h1');
$I->cantSee($event->label());
$I->cantSee('No events at this time');
$I->canSee($message);
// $I->canSee($message);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/codeception/acceptance/Content/NewsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public function testVocabularyTermsExists(AcceptanceTester $I) {

/**
* Test that the view pages exist.
* We have removed the news view, and replaced it with what used to be magazine.
*/
public function testViewPagesExist(AcceptanceTester $I) {
private function testViewPagesExist(AcceptanceTester $I) {
$I->amOnPage("/news");
$I->seeLink('Announcement');
$I->click("a[href='/news/announcement']");
Expand Down
5 changes: 3 additions & 2 deletions tests/codeception/acceptance/Magazine/MagazineCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function testMagazineStory(AcceptanceTester $I) {
* Test the landing page exists.
*/
$I->amOnPage('/news');
$I->canSee('Research & Ideas');
// This was removed.
//$I->canSee('Research & Ideas');
$I->canSee('Topics');
// This was removed from the layout.
//$I->canSee('Issues');
Expand Down Expand Up @@ -63,7 +64,7 @@ public function testMagazineStory(AcceptanceTester $I) {
/**
* Test to ensure the topic landing page exists.
*/
$I->seeCurrentUrlEquals('/news/test-magazine-topic');
$I->seeCurrentUrlEquals('/news/topic/test-magazine-topic');
$I->canSee('Test Magazine Topic');
// $I->canSee($magazineStory->getTitle());
/**
Expand Down
2 changes: 1 addition & 1 deletion tests/codeception/acceptance/Media/MediaFormsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testFormAlters(AcceptanceTester $I) {
$I->seeInCurrentUrl('delete');
$I->click('Delete');
$I->dontSeeLink($name);
$I->seeInCurrentUrl('/admin/content/media');
// $I->seeInCurrentUrl('/admin/content/media');
}

}

0 comments on commit 3533307

Please sign in to comment.