{"size": 2266, "ext": "js", "max_stars_repo_path": "SystemTests/choicemoraldisplay.js", "max_stars_repo_name": "adamaxe/moralifelegacy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "SystemTests/choicemoraldisplay.js", "max_issues_repo_name": "adamaxe/moralifelegacy", "max_issues_repo_issues_event_min_datetime": "2020-03-27T23:13:41.000Z", "max_issues_repo_issues_event_max_datetime": "2020-03-28T03:15:00.000Z", "max_forks_repo_path": "SystemTests/choicemoraldisplay.js", "max_forks_repo_name": "adamaxe/moralifelegacy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 28.6835443038, "max_line_length": 107, "alphanum_fraction": 0.7171226831}
/**
Moralife UI Choice Moral Display validation - Ensure that User sees the correct verbiage for a Moral Choice
 
@author Copyright 2012 Team Axe, LLC. All rights reserved. http://www.teamaxe.org

@date 05/28/2012
@file choicemoraldisplay.js
*/

#import "include/uiajsinclude.js"

var testSuiteName = "Choice Moral Display (choicemoraldisplay.js)";
var testCaseName;

UIALogger.logMessage(testSuiteName + " Testing Begins");

app.navigationBar().buttons()["Journal"].tap();
window.buttons()["Moral Choice"].tap();

testCaseName = testSuiteName + " navigationBar Title Text";
UIALogger.logStart(testCaseName + " Test");

target.delay(2.0);

if(app.navigationBar().name() == "Moral Choice") {
	UIALogger.logPass(testCaseName + " correct"); 
} else {
	UIALogger.logFail(testCaseName + " incorrect: " + app.navigationBar().name());
}

testCaseName = testSuiteName + " moralReferenceButton Default";
UIALogger.logStart(testCaseName + " Test");

window.buttons()["Moral Reference"].tap();

if(window.buttons()["Previous"].checkIsValid()) {
	window.buttons()["Previous"].tap();
	UIALogger.logPass(testCaseName + " correct"); 
} else {
	UIALogger.logFail(testCaseName + " incorrect.");
}

testCaseName = testSuiteName + " moralButton Title Text";
UIALogger.logStart(testCaseName + " Test");

if(window.buttons()["Select a Virtue"].value() == "") {
	UIALogger.logFail(testCaseName + " incorrect");
} else {
	UIALogger.logPass(testCaseName + " correct"); 
}

testCaseName = testSuiteName + " severityLabel Text";
UIALogger.logStart(testCaseName + " Test");

if(window.staticTexts()["Good"].value() == "") {
	UIALogger.logFail(testCaseName + " incorrect");
} else {
	UIALogger.logPass(testCaseName + " correct"); 
}

testCaseName = testSuiteName + " influenceButton Default";
UIALogger.logStart(testCaseName + " Test");

app.navigationBar().rightButton().tap();
window.buttons()["Influence Description"].tap();

if(window.buttons()["Previous"].checkIsValid()) {
	window.buttons()["Previous"].tap();
	UIALogger.logPass(testCaseName + " correct"); 
} else {
	UIALogger.logFail(testCaseName + " incorrect");
}

window.buttons()["Cancel"].tap();

window.buttons()["Cancel"].tap();
app.navigationBar().buttons()["Home"].tap();

UIALogger.logMessage(testSuiteName + " Testing Ends");