Fix Sahi tests due to removal of scenarios option
This commit is contained in:
parent
b21342ee67
commit
b09108c211
1 changed files with 2 additions and 14 deletions
|
|
@ -52,7 +52,6 @@ function configChangeInCheckboxes($list) {
|
||||||
|
|
||||||
function configCheckChangesInCheckboxes($list){
|
function configCheckChangesInCheckboxes($list){
|
||||||
configCheckLogin();
|
configCheckLogin();
|
||||||
configCheckScenario();
|
|
||||||
configCheckMonteCarlo();
|
configCheckMonteCarlo();
|
||||||
configCheckTypes($list);
|
configCheckTypes($list);
|
||||||
}
|
}
|
||||||
|
|
@ -75,21 +74,11 @@ function configCheckMonteCarlo(){
|
||||||
_assert(_isVisible(_cell("MonteCarlo Method")));
|
_assert(_isVisible(_cell("MonteCarlo Method")));
|
||||||
_log("Monte Carlo is showed", "custom1");
|
_log("Monte Carlo is showed", "custom1");
|
||||||
_click(_link("LibrePlan Configuration"));
|
_click(_link("LibrePlan Configuration"));
|
||||||
_click(_checkbox(0, _near(_label("Enable scenarios module"))));
|
_click(_checkbox(0, _near(_label("MonteCarlo method"))));
|
||||||
_click(_cell("Save"));
|
_click(_cell("Save"));
|
||||||
commonDeleteProject("projectForCheckMontecarlo");
|
commonDeleteProject("projectForCheckMontecarlo");
|
||||||
}
|
}
|
||||||
|
|
||||||
function configCheckScenario(){
|
|
||||||
_click(_link("Projects List"));
|
|
||||||
_assertExists(_span("scenario:"));
|
|
||||||
_assert(_isVisible(_span("scenario:")));
|
|
||||||
_log("Scenario is showed", "custom1");
|
|
||||||
_click(_link("LibrePlan Configuration"));
|
|
||||||
_click(_checkbox(0, _near(_label("Enable scenarios module"))));
|
|
||||||
_click(_cell("Save"));
|
|
||||||
}
|
|
||||||
|
|
||||||
function configCheckTypes($list){
|
function configCheckTypes($list){
|
||||||
var $code;
|
var $code;
|
||||||
for (var $i = 0; $i < $list.length; $i++){
|
for (var $i = 0; $i < $list.length; $i++){
|
||||||
|
|
@ -212,8 +201,7 @@ function configCheckCalendarProject($name){
|
||||||
/* test values */
|
/* test values */
|
||||||
var $listCheckoxes = ["Criterion", "Label", "Work report", "Resources", "Types of work hours",
|
var $listCheckoxes = ["Criterion", "Label", "Work report", "Resources", "Types of work hours",
|
||||||
"Material categories", "Unit Measures", "Calendar", "Work report types",
|
"Material categories", "Unit Measures", "Calendar", "Work report types",
|
||||||
"Calendar exception types", "Cost category", "MonteCarlo method", "Enable scenarios module",
|
"Calendar exception types", "Cost category", "MonteCarlo method", "Enable/Disable"];
|
||||||
"Enable/Disable"];
|
|
||||||
var $listMenuOptions = ["Criteria", "Exception Days", "Labels", "Unit Measures", "Work Hours",
|
var $listMenuOptions = ["Criteria", "Exception Days", "Labels", "Unit Measures", "Work Hours",
|
||||||
"Work Report Models", "Cost Categories", "Calendars", "Workers", "Machines"];
|
"Work Report Models", "Cost Categories", "Calendars", "Workers", "Machines"];
|
||||||
var $calendarName = "CalendarForConfig";
|
var $calendarName = "CalendarForConfig";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue