diff --git a/tests/src/Functional/UwWcmsBasicTest.php b/tests/src/Functional/UwWcmsBasicTest.php index 38a4e5e2ea59c8c03b50430a3b40df54700a62d1..e29c7fd01ad3de31bb5c69ac773df7b009e06275 100644 --- a/tests/src/Functional/UwWcmsBasicTest.php +++ b/tests/src/Functional/UwWcmsBasicTest.php @@ -1572,6 +1572,21 @@ class UwWcmsBasicTest extends BrowserTestBase { $this->submitForm($req_fields, 'Save'); // Contact successfully created when only required fields are submitted. $this->assertSession()->statusCodeEquals(200); + + // Check pathauto pattern to make sure they are in same row. + $this->drupalGet('admin/config/search/path/patterns'); + $this->assertSession()->statusCodeEquals(200); + $elements = $this->xpath('//div[@id="block-uw-theme-admin-mainpagecontent"] + //table/tbody/tr[@data-drupal-selector="edit-entities-uw-path-contact"]/td'); + $expected_items = [ + 'Contact path pattern', + 'contacts/[node:title]', + 'Content', + 'The node bundle is uw_ct_contact', + ]; + foreach ($expected_items as $key => $value) { + $this->assertEqual($elements[$key]->getText(), $value); + } } /** @@ -1629,6 +1644,21 @@ class UwWcmsBasicTest extends BrowserTestBase { // Validate new content has been created with same name. $this->assertSession()->pageTextContains('Profile ' . $profile_name . ' has been created.'); + + // Check pathauto pattern to make sure they are in same row. + $this->drupalGet('admin/config/search/path/patterns'); + $this->assertSession()->statusCodeEquals(200); + $elements = $this->xpath('//div[@id="block-uw-theme-admin-mainpagecontent"] + //table/tbody/tr[@data-drupal-selector="edit-entities-uw-path-profile"]/td'); + $expected_items = [ + 'Profile path pattern', + 'profiles/[node:title]', + 'Content', + 'The node bundle is uw_ct_profile', + ]; + foreach ($expected_items as $key => $value) { + $this->assertEqual($elements[$key]->getText(), $value); + } } /**