Skip to content
Snippets Groups Projects

Issue #3493914: Add test coverage for block visibility vertical tabs

Issue #3493914: Add test coverage for block visibility vertical tabs
2 open threads

Closes #3493914

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
47 47 $assert_session->assertWaitOnAjaxRequest();
48 48 $assert_session->pageTextNotContains('The submitted value Pre-content in the Region element is not allowed.');
49 49 $assert_session->optionExists('Region', '- Select -');
50 // Check whether the text "Response status" or "Not restricted" is present in the tab titles.
  • 47 47 $assert_session->assertWaitOnAjaxRequest();
    48 48 $assert_session->pageTextNotContains('The submitted value Pre-content in the Region element is not allowed.');
    49 49 $assert_session->optionExists('Region', '- Select -');
    50 // Check whether the text "Response status" or "Not restricted" is present in the tab titles.
    51 $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', 'Response status');
    52 $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', 'Not restricted');
    • Comment on lines +51 to +52
      Suggested change
      Applied
      51 $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', 'Response status');
      52 $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', 'Not restricted');
      51 $summary_text = $this->getSession()->getPage()->find('css', 'li.vertical-tabs__menu-item:nth-child(1) > a:nth-child(1) > span:nth-child(2)')->getText();
      52 $assert_session->elementTextContains('css', '.vertical-tabs__menu-item-title', 'Response status');
      53 $assert_session->elementTextNotContains('css', '.vertical-tabs__menu-item-title', $summary_text);

      Maybe we should get the summary line first and then compare? Also, 'Response status' should be in the title text for the first tab.

    • andrew farquharson changed this line in version 4 of the diff

      changed this line in version 4 of the diff

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

    • 7e1811f0 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 1241e0c9 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 13 commits

    • 1241e0c9...51ae0389 - 9 commits from branch project:11.x
    • dc7a7c41 - Issue #3493914: Add test coverage for block visibility vertical tabs
    • 54a86552 - Update BlockAddTest.php Simplify: only check that text is not in the tab titles
    • fbfd6a57 - Apply 1 suggestion(s) to 1 file(s)
    • f961020a - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • shalini jha added 133 commits

    added 133 commits

    • f961020a...873f84fc - 128 commits from branch project:11.x
    • 19ca4a41 - Issue #3493914: Add test coverage for block visibility vertical tabs
    • 53f8edb6 - Update BlockAddTest.php Simplify: only check that text is not in the tab titles
    • a96751c7 - Apply 1 suggestion(s) to 1 file(s)
    • df3b4878 - Apply 1 suggestion(s) to 1 file(s)
    • 59d7761d - Removed unused variable and directly called method.

    Compare with previous version

  • closed

  • Please register or sign in to reply
    Loading