Issue #3439892 by SolimanHarkas, pradhumanjain2311, vensires: Fix Language tests that rely on UID1's super user behavior

(cherry picked from commit 2c641d8d07)
merge-requests/7849/head
Alex Pott 2024-04-18 15:56:32 +01:00
parent 3adb7e2297
commit 3d98eb890b
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 3 additions and 10 deletions

View File

@ -27,14 +27,6 @@ class LanguageConfigOverrideImportTest extends BrowserTestBase {
'config_translation',
];
/**
* {@inheritdoc}
*
* @todo Remove and fix test to not rely on super user.
* @see https://www.drupal.org/project/drupal/issues/3437620
*/
protected bool $usesSuperUserAccessPolicy = TRUE;
/**
* {@inheritdoc}
*/
@ -70,8 +62,9 @@ class LanguageConfigOverrideImportTest extends BrowserTestBase {
$this->assertEquals('FR default site name', $override->get('name'));
$this->drupalGet('fr');
$this->assertSession()->pageTextContains('FR default site name');
$this->drupalLogin($this->rootUser);
$this->drupalLogin($this->drupalCreateUser([
'translate configuration',
]));
$this->drupalGet('admin/config/development/maintenance/translate/fr/edit');
$this->assertSession()->pageTextContains('FR message: @site is currently under maintenance. We should be back shortly. Thank you for your patience');
}