Commit c391de18 authored by Dries's avatar Dries

Issue #2125725 by Sweetchuck: Wrong XPath query in FieldUiTestBase.php.

parent 798850df
...@@ -83,7 +83,7 @@ function fieldUIAddNewField($bundle_path, $initial_edit, $field_edit = array(), ...@@ -83,7 +83,7 @@ function fieldUIAddNewField($bundle_path, $initial_edit, $field_edit = array(),
$this->assertRaw(t('Saved %label configuration.', array('%label' => $label)), 'Redirected to "Manage fields" page.'); $this->assertRaw(t('Saved %label configuration.', array('%label' => $label)), 'Redirected to "Manage fields" page.');
// Check that the field appears in the overview form. // Check that the field appears in the overview form.
$this->assertFieldByXPath('//table[@id="field-overview"]//td[1]', $label, 'Field was created and appears in the overview page.'); $this->assertFieldByXPath('//table[@id="field-overview"]//tr/td[1]', $label, 'Field was created and appears in the overview page.');
} }
/** /**
...@@ -109,7 +109,7 @@ function fieldUIAddExistingField($bundle_path, $initial_edit, $instance_edit = a ...@@ -109,7 +109,7 @@ function fieldUIAddExistingField($bundle_path, $initial_edit, $instance_edit = a
$this->assertRaw(t('Saved %label configuration.', array('%label' => $label)), 'Redirected to "Manage fields" page.'); $this->assertRaw(t('Saved %label configuration.', array('%label' => $label)), 'Redirected to "Manage fields" page.');
// Check that the field appears in the overview form. // Check that the field appears in the overview form.
$this->assertFieldByXPath('//table[@id="field-overview"]//td[1]', $label, 'Field was created and appears in the overview page.'); $this->assertFieldByXPath('//table[@id="field-overview"]//tr/td[1]', $label, 'Field was created and appears in the overview page.');
} }
/** /**
......
Markdown is supported
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