Commit 737ae198 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4512 First name and Last name required fields in 'Add user' page

parent 183f749d
......@@ -965,6 +965,12 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->getSession()->getPage()->clickLink('Edit');
$this->assertSession()->pageTextContains('Status');
$this->assertSession()->buttonExists('edit-delete');
// Two required field (First name and Last name) in 'Add user' page.
$this->drupalGet('admin/people/create');
$this->assertSession()->statusCodeEquals(200);
$this->assertFieldByXPath('//input[@type="text" and @id="edit-field-uw-first-name-0-value" and @required=true()]', NULL, 'Required first name.');
$this->assertFieldByXPath('//input[@type="text" and @id="edit-field-uw-last-name-0-value" and @required=true()]', NULL, 'Required last name.');
$this->drupalLogout();
// Site owner oes not have access to "status" and "cancel account"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment