Ironing scripts.
This commit is contained in:
parent
95aa450181
commit
6dd9ff1e1e
|
|
@ -5,9 +5,9 @@ test("----- githubSignUp -----", function (check, pass) {
|
|||
var target = UIATarget.localTarget();
|
||||
|
||||
UIATarget.onAlert = function(alert){
|
||||
var okButton = UIATarget.localTarget().frontMostApp().alert().buttons()["OK"];
|
||||
okButton.tap();
|
||||
var okButton = UIATarget.localTarget().frontMostApp().alert().cancelButton().tap();
|
||||
|
||||
sleep(1)
|
||||
UIATarget.localTarget().frontMostApp().navigationBar().leftButton().tap();
|
||||
|
||||
pass()
|
||||
|
|
@ -17,16 +17,17 @@ test("----- githubSignUp -----", function (check, pass) {
|
|||
target.frontMostApp().mainWindow().tableViews()[0].cells()[2].tap();
|
||||
|
||||
target.frontMostApp().mainWindow().textFields()[0].tap();
|
||||
writeInElement(target.frontMostApp().mainWindow().textFields()[0], "rxrevolution")
|
||||
target.frontMostApp().keyboard().typeString("rxrevolution")
|
||||
|
||||
|
||||
target.frontMostApp().mainWindow().secureTextFields()[0].tap();
|
||||
writeInElement(target.frontMostApp().mainWindow().secureTextFields()[0], "mypassword")
|
||||
|
||||
target.frontMostApp().keyboard().typeString("mypassword")
|
||||
|
||||
target.frontMostApp().mainWindow().secureTextFields()[1].tap();
|
||||
writeInElement(target.frontMostApp().mainWindow().secureTextFields()[1], "mypassword")
|
||||
target.frontMostApp().keyboard().typeString("mypassword")
|
||||
|
||||
UIATarget.localTarget().tap({x:14.50, y:80.00});
|
||||
target.frontMostApp().mainWindow().buttons()["Sign up"].tap();
|
||||
|
||||
sleep(2)
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ test("----- searchWikipedia -----", function (check, pass) {
|
|||
|
||||
var width = target.frontMostApp().mainWindow().rect().size.width
|
||||
|
||||
target.frontMostApp().mainWindow().tableViews()[0].cells()[9].tap();
|
||||
target.frontMostApp().mainWindow().tableViews()[0].cells()[10].tap();
|
||||
|
||||
target.delay(2);
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
test("----- reactivePartialUpdates -----", function (check, pass) {
|
||||
var target = UIATarget.localTarget()
|
||||
|
||||
target.frontMostApp().mainWindow().tableViews()[0].cells()[11].tap();
|
||||
target.frontMostApp().mainWindow().tableViews()[0].cells()[9].tap();
|
||||
target.frontMostApp().navigationBar().rightButton().tap();
|
||||
target.frontMostApp().navigationBar().rightButton().tap();
|
||||
target.frontMostApp().navigationBar().rightButton().tap();
|
||||
|
|
|
|||
|
|
@ -45,10 +45,4 @@ function warning(string) {
|
|||
|
||||
function sleep(time) {
|
||||
UIATarget.localTarget().delay(time);
|
||||
}
|
||||
|
||||
function writeInElement(element, text) {
|
||||
for (var i = 1; i < text.length + 1; i++) {
|
||||
element.setValue(text.substring(0, i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ if [ `xcodebuild -showsdks | grep tvOS | wc -l` -gt 0 ]; then
|
|||
fi
|
||||
|
||||
if [ "$1" == "r" ]; then
|
||||
printf "${GREEN}Pre release tests on, hang on tight ...${RESET}"
|
||||
printf "${GREEN}Pre release tests on, hang on tight ...${RESET}\n"
|
||||
RELEASE_TEST=1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue