Skip to content

Commit

Permalink
Squashed 'docroot/profiles/lagunita/summer_profile/' changes from e53…
Browse files Browse the repository at this point in the history
…04144..6dd9de54

6dd9de54 Update tests to work correctly with trash module (#850)

git-subtree-dir: docroot/profiles/lagunita/summer_profile
git-subtree-split: 6dd9de5467394a9af04be1813b7ea8b7d76f9a6e
  • Loading branch information
pookmish committed Jan 22, 2025
1 parent 5c7006d commit 87bdf3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/codeception/acceptance/Content/EventsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -233,6 +233,8 @@ public function testEditorPerms(AcceptanceTester $I) {

/**
* Test thing.
*
* @group foobar
*/
public function testSiteManagerPerms(AcceptanceTester $I) {
$I->logInWithRole('site_manager');
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/codeception/acceptance/Content/EventsSeriesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 87bdf3e

Please sign in to comment.