· 8 years ago · Feb 13, 2018, 04:40 PM
1$scope = $('div[ng-controller="applyController"]').scope()
2
3var di = new Date().format('{dd}{MM}{yy}{hh}{mm}{ss}');
4
5// Wizard 1
6$scope.Variables.GLLimit = "$1,000,000/$1,000,000";
7$scope.Variables.EffDate = "02/15/2018";
8
9// Wizard 2
10$scope.Variables.orgName = "nachoorgname bop " + di
11$scope.Variables.OrgType = "Corporation"
12$scope.Variables.firstName = "Nacho test bop " + di
13$scope.Variables.lastName = "nacho last bop " + di
14$scope.Variables.address = "Nacho Ah addr"
15$scope.Variables.city = "nachocity"
16$scope.Variables.state = "CA"
17$scope.Variables.zipcode = "12345"
18$scope.Variables.primaryPhone= "1231231231"
19$scope.Variables.Email = "testscio.nacho+ah" + di + "@gmail.com";
20
21// Wizard 3
22$scope.Variables.ConstructionType = "Fire resistive";
23$scope.Variables.YearBuilt = 2018;
24$scope.Variables.SquareFeet = 200;
25$scope.Variables.BuildingLocationType = "Building Owned by Insured";
26$scope.Variables.PrimaryLocationPropertyValue = 120000;
27$scope.Variables.BusinessownersEnhancementDeluxe = "No";
28$scope.Variables.AddAdditionalGLLocation = "No";
29
30// Wizard 4
31$scope.Variables.AdditionalInsuredRequired = "No";
32$scope.Variables.EquipmentBreakdown = "No";
33
34// Wizard 4
35$scope.Variables.QualificationQuestionOne = "No";
36
37
38// Payment variables
39$scope.Purchase.CardType = "VISA";
40$scope.Purchase.NumberCard = "4111111111111111";
41$scope.Purchase.CardName = "Nacho test Ah " + di;
42$scope.Purchase.Month = "12";
43$scope.Purchase.Year = 2020;
44$scope.Purchase.SecurityCode = "123";
45$scope.Purchase.ShowButton1 = true;
46$scope.Variables.EmploymentCategory = "Employed";
47
48// Validate wizards
49$.each($scope.Insurance.Wizards.findAll({ WizardTypeId: 1 }), function(wIdx, wiz){
50 wiz.ValidationStatus = "Passed";
51});
52
53answerControl.functions();
54
55$scope.$apply()