From 3d43de19770ad2c40c1acf2458399fa88f45266d Mon Sep 17 00:00:00 2001 From: drishu Date: Mon, 4 Nov 2024 14:46:16 +0200 Subject: [PATCH] OEL-3422: Drop functional test. --- .../LanguageSwitcherAccessibleTest.php | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/src/Functional/LanguageSwitcherAccessibleTest.php diff --git a/tests/src/Functional/LanguageSwitcherAccessibleTest.php b/tests/src/Functional/LanguageSwitcherAccessibleTest.php deleted file mode 100644 index 35a09417..00000000 --- a/tests/src/Functional/LanguageSwitcherAccessibleTest.php +++ /dev/null @@ -1,50 +0,0 @@ -drupalGet(''); - $page = $this->getSession()->getPage(); - $assert_session = $this->assertSession(); - - $assert_session->elementExists('css', '.language-switcher a'); - - $link = $page->find('css', '.language-switcher a'); - $aria_label_en = $link->getAttribute('aria-label'); - $this->assertEquals('Change language. Current language is English.', $aria_label_en); - $link->click(); - - // Wait for the modal to be visible (if necessary). - $this->assertSession()->elementExists('css', '.bcl-language-list-modal'); - - $modal_page = $this->getSession()->getPage(); - $dutch_link = $modal_page->find('css', 'a#link_nl'); - - $dutch_link->click(); - - $link = $this->getSession()->getPage()->find('css', '.language-switcher a'); - $aria_label_nl = $link->getAttribute('aria-label'); - $this->assertEquals('Change language. Current language is Nederlands.', $aria_label_nl); - } - -}