commit e071ded86bfc352ac7c64dc3be6866d7260025b5 Author: Joel Pittet Date: Fri Oct 11 19:45:49 2013 -0700 update test with xpath diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php index 3d20f6d..b0be2de 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php @@ -167,7 +167,9 @@ function testUpdateImportSourceRemote() { $this->drupalGet('admin/reports/translations/check'); // Check the status on the Available translation status page. - $this->assertRaw('', 'German language found'); + $elements = $this->xpath('//label[@class="visually-hidden" and @for="edit-langcodes-de" and text()=:value]', array(':value' => 'Update German')); + $this->assertTrue(!empty($elements), 'German language found'); + $this->assertText('Updates for: Contributed module one, Contributed module two, Custom module one, Locale test', 'Updates found'); $this->assertText('Contributed module one (' . format_date($this->timestamp_now, 'html_date') . ')', 'Updates for Contrib module one'); $this->assertText('Contributed module two (' . format_date($this->timestamp_new, 'html_date') . ')', 'Updates for Contrib module two');