Commit c651bdf2 authored by johnzzon's avatar johnzzon
Browse files

Use CSS selectors instead of labels.

parent ec85a440
......@@ -171,13 +171,15 @@ class LayoutBuilderModalTest extends WebDriverTestBase {
$assert_session->assertWaitOnAjaxRequest();
$this->clickLink('Two column');
$assert_session->assertWaitOnAjaxRequest();
$page->pressButton('Add section');
$button = $assert_session->elementExists('css', '.layout-builder-configure-section .button--primary');
$button->press();
$assert_session->assertWaitOnAjaxRequest();
$this->click('.layout-builder__add-block .layout-builder__link--add');
$assert_session->assertWaitOnAjaxRequest();
$this->clickLink('Authored by');
$assert_session->assertWaitOnAjaxRequest();
$page->pressButton('Add Block');
$button = $assert_session->elementExists('css', '#layout-builder-add-block .button--primary');
$button->press();
$assert_session->assertWaitOnAjaxRequest();
$contextual_links = $page->findAll('css', '.layout-builder-block-update a');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment