Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
3 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 823a7afe
    Issue #3272537 by danflanagan8: Help and Help Topics tests should not rely on Classy · 823a7afe
    catch authored
@@ -51,11 +51,11 @@ protected function setUp(): void {
@@ -51,11 +51,11 @@ protected function setUp(): void {
public function testExperimentalHelp() {
public function testExperimentalHelp() {
$this->drupalLogin($this->adminUser);
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/help/experimental_module_test');
$this->drupalGet('admin/help/experimental_module_test');
$this->assertSession()->pageTextContains('This module is experimental.');
$this->assertSession()->statusMessageContains('This module is experimental.', 'warning');
// Regular modules should not display the message.
// Regular modules should not display the message.
$this->drupalGet('admin/help/help_page_test');
$this->drupalGet('admin/help/help_page_test');
$this->assertSession()->pageTextNotContains('This module is experimental.');
$this->assertSession()->statusMessageNotContains('This module is experimental.');
// Ensure the actual help page is displayed to avoid a false positive.
// Ensure the actual help page is displayed to avoid a false positive.
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->statusCodeEquals(200);
Loading