Skip to content

Commit

Permalink
Updated tests for contrib updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 13, 2024
1 parent e9f934c commit 80021fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
20 changes: 0 additions & 20 deletions config/sync/ultimate_cron.job.node_revision_delete_cron.yml

This file was deleted.

8 changes: 2 additions & 6 deletions tests/codeception/acceptance/AuthenticatedPermissionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ public function testAuthenticatedUserRestrictions(AcceptanceTester $I) {
*/
public function testSiteManagerEscalationSelf(AcceptanceTester $I) {
$site_manager = $I->logInWithRole('site_manager');
$site_manager_id = $site_manager->id();
$I->amOnPage('/admin/users');
$I->canSee($site_manager->getDisplayName());
$I->click(['link' => $site_manager->getDisplayName()]);
$I->click('.roles.tabs__tab a');
$I->canSeeInCurrentUrl("/user/$site_manager_id/roles");
$I->amOnPage($site_manager->toUrl('edit-form')->toString());

$I->dontSee('Administrator');
$I->dontSee('Site Builder');
$I->dontSee('Site Developer');
Expand Down
5 changes: 2 additions & 3 deletions tests/codeception/acceptance/Content/NewsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ public function testXMLMetaDataRevisions(AcceptanceTester $I) {

// Revision Delete is enabled.
$I->amOnPage('/admin/structure/types/manage/stanford_news');
$I->seeCheckboxIsChecked("#edit-node-revision-delete-track");
$I->seeCheckboxIsChecked("#edit-options-revision");
$I->seeInField("#edit-minimum-revisions-to-keep", 5);
$I->seeCheckboxIsChecked("#edit-amount-status");
$I->seeInField("Minimum number of revisions to keep (per language)", 5);

// XML Sitemap.
$I->amOnPage("/admin/config/search/xmlsitemap/settings");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testNodeRevisionDelete(AcceptanceTester $I) {
$I->amOnPage("/node/{$node->id()}/revisions");
$I->canSeeNumberOfElements('.diff-revisions tbody tr', 11);

$I->runDrush('cron:run node_revision_delete_cron --force');
$I->runDrush('queue:run node_revision_delete');
$I->amOnPage("/node/{$node->id()}/revisions");
$I->canSeeNumberOfElements('.diff-revisions tbody tr', 5);
}
Expand Down

0 comments on commit 80021fe

Please sign in to comment.