Skip to content
Snippets Groups Projects
Commit ba764ba0 authored by catch's avatar catch
Browse files

Issue #2933413 by Graber, alexpott, joelpittet, chanderbhushan, jchand:...

Issue #2933413 by Graber, alexpott, joelpittet, chanderbhushan, jchand: Improve test coverage of using bulk actions when the view has an exposed form using AJAX
parent 522ab171
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -40,6 +40,7 @@ public function testExposedFiltering() {
'administer site configuration',
'access content',
'access content overview',
'edit any page content',
]);
$this->drupalLogin($user);
......@@ -71,6 +72,16 @@ public function testExposedFiltering() {
$this->assertContains('Page Two', $html);
$this->assertNotContains('Page One', $html);
// Submit bulk actions form to ensure that the previous AJAX submit does not
// break it.
$this->submitForm([
'action' => 'node_make_sticky_action',
'node_bulk_form[0]' => TRUE,
], t('Apply to selected items'));
// Verify that the action was performed.
$this->assertSession()->pageTextContains('Make content sticky was applied to 1 item.');
// Reset the form.
$this->submitForm([], t('Reset'));
$this->assertSession()->assertWaitOnAjaxRequest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment