Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2015 at 13:34 UTC
Updated:
11 Aug 2015 at 22:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
giancarlosotelo commentedAdded tests.
Comment #2
LKS90 commented+++ b/src/Tests/TMGMTUiTest.php
@@ -249,6 +249,50 @@ class TMGMTUiTest extends TMGMTTestBase {
+ $this->drupalGet('admin/tmgmt/jobs', array('query' => array(
+ 'state' => '1',
+ 'target_language' => 'de',
+ 'source_language' => 'en',
+ )));
Use drupalPostForm instead, the path is the same, the $edit will be your 'query' array, and the last parameter is the label of the button you want to push, in this case t('Apply').
Possible, but an xpath query would probably be nicer.
//table[@class='views-table views-view-table cols-9']/tbody/tr/td[@class='views-field views-field-target-language']Returns the column with all target languages.
Comment #3
berdir1. This is a views filter form which uses GET, not POST. So you can't post it :) This is correct.
Comment #4
giancarlosotelo commentedHere is the patch with recommendations.
Comment #5
LKS90 commentedLooks good!
Comment #6
berdirYummy, moar tests.