Skip to content
Snippets Groups Projects

#3504664 "Modules that set"

1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 543 543 $this->assertTrue($is_visible);
    544 544 }
    545 545
    546 /**
    547 * Tests that the messages set by projects while installing are shown.
    548 */
    549 public function testMessagesSetByProjectsAreShown(): void {
    550 TestActivator::handle('drupal/cream_cheese');
    551 $this->drupalGet('project-browser/project_browser_test_mock');
    552 $messages_to_set = ["This message is from Cream cheese on a bagel", "For testing purpose only."];
    553 TestActivator::setMessagesOnActivate('drupal/cream_cheese', $messages_to_set);
    554 $card = $this->waitForProject('Cream cheese on a bagel');
    555 $card->pressButton('Install Cream cheese on a bagel');
    556 $this->waitForProjectToBeInstalled($card);
    557 foreach ($messages_to_set as $message) {
    558 $this->assertPageHasText($message);
    • We should also assert that it actually shows up as a status message. We could use $assert_session->statusMessageContains() for that.

    • I tried it but for some reason only the second status message is shown on the page but if I go to status reports it shows both the status messages. I am still in process to debug it and see what's wrong!!

    • Please register or sign in to reply
  • Kunal Sachdev added 1 commit

    added 1 commit

    • 94dd01c6 - addressing feedback in progress

    Compare with previous version

  • Please register or sign in to reply
    Loading