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

Issue #3387772 by Spokje: [random test failure] Random failure in...

Issue #3387772 by Spokje: [random test failure] Random failure in ThrobberTest::testProgressThrobberPosition

(cherry picked from commit 6da04293)
parent c23f2145
No related branches found
No related tags found
13 merge requests!7564Revert "Issue #3364773 by roshnichordiya, Chris Matthews, thakurnishant_06,...,!5752Issue #3275828 by joachim, quietone, bradjones1, Berdir: document the reason...,!5627Issue #3261805: Field not saved when change of 0 on string start,!5427Issue #3338518: send credentials in ajax if configured in CORS settings.,!5395Issue #3387916 by fjgarlin, Spokje: Each GitLab job exposes user email,!5217Issue #3386607 by alexpott: Improve spell checking in commit-code-check.sh,!5064Issue #3379522 by finnsky, Gauravvvv, kostyashupenko, smustgrave, Chi: Revert...,!5040SDC ComponentElement: Transform slots scalar values to #plain_text instead of throwing an exception,!4958Issue #3392147: Whitelist IP for a Ban module.,!4894Issue #3280279: Add API to allow sites to opt in to upload SVG images in CKEditor 5,!3106Issue #3017548: "Filtered HTML" text format does not support manual teaser break (<!--break-->),!925Issue #2339235: Remove taxonomy hard dependency on node module,!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links
Pipeline #25111 failed
Pipeline: drupal

#25120

    Pipeline: drupal

    #25119

      Pipeline: drupal

      #25118

        ......@@ -28,18 +28,6 @@ class ThrobberTest extends WebDriverTestBase {
        */
        protected $defaultTheme = 'stark';
        /**
        * {@inheritdoc}
        */
        protected function setUp(): void {
        parent::setUp();
        $admin_user = $this->drupalCreateUser([
        'administer views',
        ]);
        $this->drupalLogin($admin_user);
        }
        /**
        * Tests theming throbber element.
        */
        ......@@ -47,6 +35,11 @@ public function testThemingThrobberElement() {
        $session = $this->getSession();
        $web_assert = $this->assertSession();
        $page = $session->getPage();
        $admin_user = $this->drupalCreateUser([
        'administer views',
        'administer blocks',
        ]);
        $this->drupalLogin($admin_user);
        $custom_ajax_progress_indicator_fullscreen = <<<JS
        Drupal.theme.ajaxProgressIndicatorFullscreen = function () {
        ......@@ -92,23 +85,17 @@ public function testThemingThrobberElement() {
        $this->assertNotNull($web_assert->waitForElement('css', '.custom-ajax-progress-throbber'), 'Custom ajaxProgressThrobber.');
        hold_test_response(FALSE);
        $web_assert->assertNoElementAfterWait('css', '.custom-ajax-progress-throbber');
        }
        /**
        * Tests progress throbber element position.
        */
        public function testProgressThrobberPosition() {
        $this->drupalLogin($this->rootUser);
        // Test progress throbber position on a dropbutton in a table display.
        $this->drupalGet('/admin/structure/block');
        $this->clickLink('Place block');
        hold_test_response(FALSE);
        $this->assertSession()->waitForText('Place Block');
        $this->clickLink('Place block');
        $web_assert->assertWaitOnAjaxRequest();
        $this->assertNotEmpty($web_assert->waitForElementVisible('css', '#drupal-modal'));
        hold_test_response(TRUE);
        $this->assertSession()->elementExists('xpath', '//div[contains(@class, "dropbutton-wrapper")]/following-sibling::div[contains(@class, "ajax-progress-throbber")]');
        $this->clickLink('Place block');
        $this->assertNotNull($web_assert->waitForElement('xpath', '//div[contains(@class, "dropbutton-wrapper")]/following-sibling::div[contains(@class, "ajax-progress-throbber")]'));
        hold_test_response(FALSE);
        $this->assertSession()->assertNoElementAfterWait('css', '.ajax-progress-throbber');
        $web_assert->assertNoElementAfterWait('css', '.ajax-progress-throbber');
        }
        }
        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