diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAdminTourTest.php b/core/modules/user/lib/Drupal/user/Tests/UserAdminTourTest.php index c2b5fab..f286a52 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserAdminTourTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserAdminTourTest.php @@ -57,7 +57,9 @@ protected function setUp() { public function testMenuTourTips() { // Visit user page. $this->drupalGet('admin/people'); - $this->assertTourTips(); + $tips = array(); + $tips[] = array('data-id' => 'views-exposed-form-user-admin-people-page-1'); + $this->assertTourTips($tips); } } diff --git a/core/modules/user/lib/Drupal/user/Tests/UserProfileTourTest.php b/core/modules/user/lib/Drupal/user/Tests/UserProfileTourTest.php new file mode 100644 index 0000000..d20c019 --- /dev/null +++ b/core/modules/user/lib/Drupal/user/Tests/UserProfileTourTest.php @@ -0,0 +1,67 @@ + 'User profile UI tour tests', + 'description' => 'Tests the User profile UI tour.', + 'group' => 'Tour', + ); + } + + protected function setUp() { + parent::setUp(); + // @see standard.install + module_load_install('user'); + user_install_picture_field(); + + $this->adminUser = $this->drupalCreateUser(array('access tour', 'administer users', 'administer permissions')); + $this->drupalLogin($this->adminUser); + } + + /** + * Tests menu tour tip availability. + */ + public function testMenuTourTips() { + // Visit user page. + $this->drupalGet('user/' . $this->adminUser->id() . '/edit'); + $this->assertTourTips(); + } + +}