From 87bdf3eb7fb1220a31cbcf17db9cb5c37f7a7160 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 22 Jan 2025 12:39:58 -0800 Subject: [PATCH] Squashed 'docroot/profiles/lagunita/summer_profile/' changes from e5304144..6dd9de54 6dd9de54 Update tests to work correctly with trash module (#850) git-subtree-dir: docroot/profiles/lagunita/summer_profile git-subtree-split: 6dd9de5467394a9af04be1813b7ea8b7d76f9a6e --- tests/codeception/acceptance/Content/EventsCest.php | 6 ++++-- tests/codeception/acceptance/Content/EventsSeriesCest.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/codeception/acceptance/Content/EventsCest.php b/tests/codeception/acceptance/Content/EventsCest.php index 181c714ed..ab30d8195 100644 --- a/tests/codeception/acceptance/Content/EventsCest.php +++ b/tests/codeception/acceptance/Content/EventsCest.php @@ -202,7 +202,7 @@ public function testEditorPerms(AcceptanceTester $I) { $I->amOnPage("/node/$id/delete"); $I->canSeeResponseCodeIs(200); - $I->canSee('This action cannot be undone'); + $I->canSee('Are you sure you want to delete'); $I->amOnPage("/node/$id/edit"); $new_title = $this->faker->words(3, TRUE); @@ -233,6 +233,8 @@ public function testEditorPerms(AcceptanceTester $I) { /** * Test thing. + * + * @group foobar */ public function testSiteManagerPerms(AcceptanceTester $I) { $I->logInWithRole('site_manager'); @@ -247,7 +249,7 @@ public function testSiteManagerPerms(AcceptanceTester $I) { $I->amOnPage("/node/$id/delete"); $I->canSeeResponseCodeIs(200); - $I->canSee('This action cannot be undone'); + $I->canSee('Are you sure you want to delete'); $I->amOnPage("/node/$id/edit"); $new_title = $this->faker->words(3, TRUE); diff --git a/tests/codeception/acceptance/Content/EventsSeriesCest.php b/tests/codeception/acceptance/Content/EventsSeriesCest.php index 0b47c220b..78db36f5e 100644 --- a/tests/codeception/acceptance/Content/EventsSeriesCest.php +++ b/tests/codeception/acceptance/Content/EventsSeriesCest.php @@ -98,7 +98,7 @@ public function testEditorPerms(AcceptanceTester $I) { $I->amOnPage("/node/$id/delete"); $I->canSeeResponseCodeIs(200); - $I->canSee('This action cannot be undone'); + $I->canSee('Are you sure you want to delete'); $I->amOnPage("/node/$id/edit"); $new_title = $this->faker->words(3, TRUE); @@ -128,7 +128,7 @@ public function testSiteManagerPerms(AcceptanceTester $I) { $I->amOnPage("/node/$id/delete"); $I->canSeeResponseCodeIs(200); - $I->canSee('This action cannot be undone'); + $I->canSee('Are you sure you want to delete'); $I->amOnPage("/node/$id/edit"); $new_title = $this->faker->words(3, TRUE);