protected function ParagraphsFeaturesSplitTextTest::clickParagraphSplitButton in Paragraphs Features 2.x
Same name and namespace in other branches
- 8 tests/src/FunctionalJavascript/ParagraphsFeaturesSplitTextTest.php \Drupal\Tests\paragraphs_features\FunctionalJavascript\ParagraphsFeaturesSplitTextTest::clickParagraphSplitButton()
Click on split text button for paragraphs text field.
Parameters
int $ck_editor_index: Index of CKEditor field in paragraphs.
1 call to ParagraphsFeaturesSplitTextTest::clickParagraphSplitButton()
- ParagraphsFeaturesSplitTextTest::testSplitTextFeature in tests/
src/ FunctionalJavascript/ ParagraphsFeaturesSplitTextTest.php - Test split text feature.
File
- tests/
src/ FunctionalJavascript/ ParagraphsFeaturesSplitTextTest.php, line 49
Class
- ParagraphsFeaturesSplitTextTest
- Tests the paragraph text split feature.
Namespace
Drupal\Tests\paragraphs_features\FunctionalJavascriptCode
protected function clickParagraphSplitButton($ck_editor_index) {
$this
->getSession()
->executeScript("jQuery('.cke_button__splittext:nth({$ck_editor_index})').trigger('click');");
$this
->assertSession()
->assertWaitOnAjaxRequest();
}