tests/src/Functional/ClaroTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/src/Functional/ClaroTest.php b/tests/src/Functional/ClaroTest.php index 7431362..4edebf1 100644 --- a/tests/src/Functional/ClaroTest.php +++ b/tests/src/Functional/ClaroTest.php @@ -56,7 +56,20 @@ class ClaroTest extends BrowserTestBase { $this->drupalGet('admin/modules'); $this->assertSession()->elementExists('css', '#block-claro-help'); + } + + /** + * Tests that the Claro theme can be uninstalled, despite being experimental. + * + * @todo Remove in https://www.drupal.org/project/drupal/issues/3066007 + */ + public function testIsUninstallable() { + $this->drupalLogin($this->drupalCreateUser(['access administration pages', 'administer themes'])); + $this->drupalGet('admin/appearance'); + $this->cssSelect('a[title="Install Seven as default theme"]')[0]->click(); + $this->cssSelect('a[title="Uninstall Claro theme"]')[0]->click(); + $this->assertText('The Claro theme has been uninstalled.'); } }