Do some changes in files which include materials tests because they didn't work correctly after a bug fixing

FEA: ItEr75S21AdministrationTests
This commit is contained in:
Pablo Fernández de la Cigoña Nóvoa 2011-09-06 13:31:30 +02:00 committed by Manuel Rego Casasnovas
parent f19238f9d6
commit 988dc6f974
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
configuration_test.sah
calendar_test.sah
material_test.sah
quality_forms_test.sah
cost_categories_test.sah
configuration_test.sah

View file

@ -116,8 +116,8 @@ function configCheckMaterial(){
var $label;
_click(_link("Materials"));
_click(_span("z-dottree-ico z-dottree-firstspacer"));
_click(_cell("z-button-cm", _near(_div("List of materials for category: Imported materials without category"))));
_set($label, _textbox(0, _near(_div("List of materials for category: Imported materials without category"))).id);
_click(_cell("z-button-cm", _near(_span("List of materials for category: Imported materials without category"))));
_set($label, _textbox(0, _near(_span("List of materials for category: Imported materials without category"))).id);
_set($code, _textbox(0, _in(_cell(_parentTable(_textbox($label)),1,0))).value);
if ($code == ""){
_log("Material code is empty", "custom1");

View file

@ -51,7 +51,7 @@ function materialEdit($oldDescription, $newDescription, $cell) {
var $table;
var $label;
_click(_link("Materials"));
_set($label, _textbox(0, _near(_div("List of materials for all categories (select one to filter)"))).id);
_set($label, _textbox(0, _near(_span("List of materials for all categories (select one to filter)"))).id);
_set($nrows, _parentTable(_textbox($label)).rows.length);
for (var $i=1; $i<$nrows; $i++){
if (_condition(_textbox(0, _in(_cell(_parentTable(_textbox($label)),$i,1))).value == $oldDescription)){
@ -69,7 +69,7 @@ function materialDelete($materialNewName, $numer){
var $table;
var $label;
_click(_link("Materials"));
_set($label,_textbox(0, _near(_div("List of materials for all categories (select one to filter)"))).id);
_set($label,_textbox(0, _near(_span("List of materials for all categories (select one to filter)"))).id);
_set($nrows,_parentTable(_textbox($label)).rows.length);
for (var $i=1; $i<$nrows; $i++){
if (_condition(_textbox(0, _in(_cell(_parentTable(_textbox($label)),$i,1))).value == $materialNewName)){