- // Make sure we have a Path fieldset and Path fields.
- $this->assertRaw(' id="edit-path-settings"', 'Path settings details exists');
- $this->assertFieldByName('path[0][alias]', NULL, 'Path alias field exists');
+ // Make sure we have a vertical tab fieldset and 'Path' fields.
+ $assert_session->elementContains('css', '.form-type-vertical-tabs #edit-path-0 summary', 'URL alias');
+ $assert_session->fieldExists('path[0][alias]');