From 3192c1bf834cab45570c306318a156ac2fb3aa16 Mon Sep 17 00:00:00 2001
From: l26yan <l26yan@uwaterloo.ca>
Date: Fri, 28 May 2021 16:14:47 -0400
Subject: [PATCH] ISTWCMS-4630 Make sure account settings first name and last
 name field are not displayed

---
 tests/src/Functional/UwWcmsBasicTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/src/Functional/UwWcmsBasicTest.php b/tests/src/Functional/UwWcmsBasicTest.php
index b53b62682..7be775344 100644
--- a/tests/src/Functional/UwWcmsBasicTest.php
+++ b/tests/src/Functional/UwWcmsBasicTest.php
@@ -1892,6 +1892,12 @@ class UwWcmsBasicTest extends BrowserTestBase {
     $this->drupalGet('admin/people');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->pageTextContains($fname . ' ' . $lname);
+
+    // field_uw_first_name and field_uw_last_name are not displayed.
+    $this->drupalGet('users/wcmstest');
+    $this->assertSession()->pageTextContains($fname . ' ' . $lname);
+    $this->assertSession()->pageTextNotContains('First name');
+    $this->assertSession()->pageTextNotContains('Last name');
   }
 
   /**
-- 
GitLab