Skip to content
Snippets Groups Projects
Commit acd9aa03 authored by catch's avatar catch
Browse files

Issue #3493914 by oily, shalini_jha, quietone: Write functional javascript...

Issue #3493914 by oily, shalini_jha, quietone: Write functional javascript test for block visibility vertical tabs
parent 66dd103a
No related branches found
No related tags found
2 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!10223132456: Fix issue where views instances are emptied before an ajax request is complete
Pipeline #413595 passed with warnings
Pipeline: drupal

#413621

    Pipeline: drupal

    #413610

      Pipeline: drupal

      #413598

        ......@@ -47,6 +47,17 @@ public function testBlockAddThemeSelector(): void {
        $assert_session->assertWaitOnAjaxRequest();
        $assert_session->pageTextNotContains('The submitted value Pre-content in the Region element is not allowed.');
        $assert_session->optionExists('Region', '- Select -');
        // Check that the summary line is not present in the title.
        $summary_text = $this->getSession()->getPage()->find('css', 'li.vertical-tabs__menu-item:nth-child(1) > a:nth-child(1) > span:nth-child(2)')->getText();
        $assert_session->elementTextContains('css', '.vertical-tabs__menu-item-title', 'Response status');
        $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', $summary_text);
        // Search for the "Pages" tab link and click it
        $this->getSession()->getPage()->find('css', 'a[href="#edit-visibility-request-path"]')->click();
        // Check that the corresponding form section is open and visible.
        $form_section = $this->getSession()->getPage()->find('css', '#edit-visibility-request-path');
        $this->assertNotEmpty($form_section, 'The "Pages" form section exists.');
        $this->assertTrue($form_section->isVisible(), 'The "Pages" form section is visible after clicking the tab.');
        }
        }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment