Verified Commit 55f58eae authored by Jess's avatar Jess
Browse files

Issue #3324901 by alexpott: TestSettingSummariesContentType has a few problems

parent c8c33fbe
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
 *
 * @group node
 */
class TestSettingSummariesContentType extends WebDriverTestBase {
class SettingSummariesContentTypeTest extends WebDriverTestBase {

  /**
   * {@inheritdoc}
@@ -45,10 +45,10 @@ public function testWorkflowSummary() {
    $page->findField('options[promote]')->check();
    $page->findField('options[revision]')->check();
    $locator = '[href="#edit-workflow"] .vertical-tabs__menu-item-summary';
    $page->waitFor(10, function () use ($page, $locator) {
    $this->assertTrue($page->waitFor(10, function () use ($page, $locator) {
      $summary = $page->find('css', $locator)->getText();
      return strpos('Not published', $summary) !== FALSE;
    });
      return str_contains($summary, 'Not published');
    }));
    $summary = $page->find('css', $locator)->getText();
    $this->assertEquals('Not published, Promoted to front page, Sticky at top of lists, Create new revision', $summary);
  }