Commit fc2f46b1 authored by Jess's avatar Jess
Browse files

Issue #3267644 by danflanagan8, mglaman: Custom Block (block_content) tests...

Issue #3267644 by danflanagan8, mglaman: Custom Block (block_content) tests should not rely on Classy

(cherry picked from commit d9fb9301)
parent 17559629
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@ dependencies:
  module:
    - block_content
  theme:
    - classy
    - stark
id: foobargorilla
theme: classy
theme: stark
region: content
weight: null
provider: null
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'stark';

  /**
   * Permissions to grant admin user.
+5 −6
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class BlockContentListTest extends BlockContentTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'stark';

  /**
   * Tests the custom block listing page.
@@ -65,11 +65,10 @@ public function testListing() {
    $this->assertSession()->elementTextContains('xpath', '//td', $label);

    // Check the number of table row cells.
    $this->assertSession()->elementsCount('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td', 2);
    // Check the contents of each row cell. The first cell contains the label,
    // the second contains the machine name, and the third contains the
    // operations list.
    $this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td[1]', $label);
    $this->assertSession()->elementsCount('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td', 2);
    // Check the contents of the row. The first cell contains the label,
    // and the second contains the operations list.
    $this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td[1]', $label);

    // Edit the entity using the operations link.
    $blocks = $this->container
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ class BlockContentPageViewTest extends BlockContentTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'stark';

  /**
   * Checks block edit and fallback functionality.
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class BlockContentSaveTest extends BlockContentTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'stark';

  /**
   * Sets the test up.
Loading