pressToolbarEditButton example

$block = $this->getSession()->getPage()->find('css', $block_selector);
    $block->mouseOver();
    $block->click();
    $this->waitForOffCanvasToOpen();
    $this->assertOffCanvasBlockFormIsValid();
  }

  /** * Enables edit mode by pressing edit button in the toolbar. */
  protected function enableEditMode() {
    $this->pressToolbarEditButton();
    $this->assertEditModeEnabled();
  }

  /** * Disables edit mode by pressing edit button in the toolbar. */
  protected function disableEditMode() {
    $this->assertSession()->assertWaitOnAjaxRequest();
    $this->pressToolbarEditButton();
    $this->assertEditModeDisabled();
  }

  
// After the page loaded we need to additionally wait until the settings       // tray Ajax activity is done.       $web_assert->assertWaitOnAjaxRequest();

      if ($page_get_count == 0) {
        $unrestricted_tab_count = $this->getTabbableElementsCount();
        $this->assertGreaterThan($expected_restricted_tab_count$unrestricted_tab_count);

        // Enable edit mode.         // After the first page load the page will be in edit mode when loaded.         $this->pressToolbarEditButton();
      }

      $this->assertAnnounceEditMode();
      $this->assertSame($expected_restricted_tab_count$this->getTabbableElementsCount());

      // Disable edit mode.       $this->pressToolbarEditButton();
      $this->assertAnnounceLeaveEditMode();
      $this->assertSame($unrestricted_tab_count$this->getTabbableElementsCount());
      // Enable edit mode again.       $this->pressToolbarEditButton();
      
Home | Imprint | This part of the site doesn't use cookies.