diff -u b/src/Tests/TMGMTUiTest.php b/src/Tests/TMGMTUiTest.php --- b/src/Tests/TMGMTUiTest.php +++ b/src/Tests/TMGMTUiTest.php @@ -248,7 +248,14 @@ ); $this->drupalPostAjaxForm('admin/tmgmt/jobs/' . $job->id(), $edit, 'target_language'); $this->assertFieldByXPath('//select[@id="edit-translator"]/option[1]', 'Test translator (auto created)'); - $this->assertFieldByXPath('//input[@id="edit-label-0-value"]', 'Label field found.'); + + // Check for label field. + $edit = array( + 'target_language' => 'el', + 'settings[action]' => 'translate', + ); + $this->drupalPostAjaxForm('admin/tmgmt/jobs/' . $job->id(), $edit, 'target_language'); + $this->assertField('label[0][value]', 'Label'); // Test exposed filters. $this->drupalGet('admin/tmgmt/jobs', array('query' => array(