mirror of
https://github.com/hmalik144/Driver.git
synced 2025-12-10 02:45:20 +00:00
- mid commit
This commit is contained in:
@@ -36,18 +36,18 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
storePassword relStorePassword
|
||||
keyPassword relKeyPassword
|
||||
keyAlias relKeyAlias
|
||||
storeFile file(relStoreFile)
|
||||
}
|
||||
}
|
||||
// signingConfigs {
|
||||
// release {
|
||||
// storePassword relStorePassword
|
||||
// keyPassword relKeyPassword
|
||||
// keyAlias relKeyAlias
|
||||
// storeFile file(relStoreFile)
|
||||
// }
|
||||
// }
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
// signingConfig signingConfigs.release
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package h_mal.appttude.com.driver
|
||||
|
||||
class FormRobot: BaseTestRobot() {
|
||||
|
||||
// fun selectImage
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun delete(func: DeleteRobot.() -> Unit) = DeleteRobot().apply { func() }
|
||||
class DeleteRobot : BaseTestRobot() {
|
||||
|
||||
fun enterEmail(email: String) = fillEditText(R.id.email_update, email)
|
||||
fun enterPassword(password: String) = fillEditText(R.id.password_top, password)
|
||||
fun submitDelete() = clickButton(R.id.submission_button_label)
|
||||
|
||||
fun submitForm(email: String, password: String) {
|
||||
enterEmail(email)
|
||||
enterPassword(password)
|
||||
submitDelete()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun driverScreen(func: DriverScreenRobot.() -> Unit) = DriverScreenRobot().apply { func() }
|
||||
class DriverScreenRobot : BaseTestRobot() {
|
||||
|
||||
fun driverProfile() = clickButton(R.id.driver_prof)
|
||||
fun privateHireLicense() = clickButton(R.id.private_hire)
|
||||
fun driverLicense() = clickButton(R.id.drivers_license)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun driversLicense(func: DriversLicenseRobot.() -> Unit) = DriversLicenseRobot().apply { func() }
|
||||
class DriversLicenseRobot : BaseTestRobot() {
|
||||
|
||||
fun enterLicenseNumber(text: String) = fillEditText(R.id.lic_no, text)
|
||||
fun enterLicenseExpiry(text: String) = fillEditText(R.id.lic_expiry, text)
|
||||
fun selectImage() = clickButton(R.id.search_image)
|
||||
fun clickSubmit() = clickButton(R.id.submit)
|
||||
|
||||
fun submitForm(licenseNumber: String, licenseExpiry: String) {
|
||||
selectImage()
|
||||
// TODO: select image in gallery
|
||||
enterLicenseNumber(licenseNumber)
|
||||
enterLicenseExpiry(licenseExpiry)
|
||||
clickSubmit()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun driversProfile(func: DriversProfileRobot.() -> Unit) = DriversProfileRobot().apply { func() }
|
||||
class DriversProfileRobot : BaseTestRobot() {
|
||||
|
||||
fun enterLicenseNumber(text: String) = fillEditText(R.id.lic_no, text)
|
||||
fun enterLicenseExpiry(text: String) = fillEditText(R.id.lic_expiry, text)
|
||||
fun selectImage() = clickButton(R.id.add_photo)
|
||||
fun clickSubmit() = clickButton(R.id.submit_driver)
|
||||
|
||||
fun submitForm(licenseNumber: String, licenseExpiry: String) {
|
||||
selectImage()
|
||||
// TODO: select image in gallery
|
||||
enterLicenseNumber(licenseNumber)
|
||||
enterLicenseExpiry(licenseExpiry)
|
||||
clickSubmit()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
@file:JvmName("UpdateEmailRobotKt")
|
||||
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun updateEmail(func: UpdateEmailRobot.() -> Unit) = UpdateEmailRobot().apply { func() }
|
||||
class UpdateEmailRobot : BaseTestRobot() {
|
||||
|
||||
fun enterEmail(email: String) = fillEditText(R.id.email_update, email)
|
||||
fun enterPassword(password: String) = fillEditText(R.id.password_top, password)
|
||||
fun enterNewEmail(email: String) = fillEditText(R.id.new_email, email)
|
||||
fun submitDelete() = clickButton(R.id.submission_button_label)
|
||||
|
||||
fun submitForm(email: String, password: String, newEmail: String) {
|
||||
enterEmail(email)
|
||||
enterPassword(password)
|
||||
enterNewEmail(newEmail)
|
||||
submitDelete()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun updatePassword(func: UpdatePasswordRobot.() -> Unit) = UpdatePasswordRobot().apply { func() }
|
||||
class UpdatePasswordRobot : BaseTestRobot() {
|
||||
|
||||
fun enterEmail(email: String) = fillEditText(R.id.email_update, email)
|
||||
fun enterPassword(password: String) = fillEditText(R.id.password_top, password)
|
||||
fun enterNewPassword(email: String) = fillEditText(R.id.password_bottom, email)
|
||||
fun submitDelete() = clickButton(R.id.email_sign_up)
|
||||
|
||||
fun submitForm(email: String, password: String, newPassword: String) {
|
||||
enterEmail(email)
|
||||
enterPassword(password)
|
||||
enterNewPassword(newPassword)
|
||||
submitDelete()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun updateProfile(func: UpdateProfileRobot.() -> Unit) = UpdateProfileRobot().apply { func() }
|
||||
class UpdateProfileRobot : BaseTestRobot() {
|
||||
|
||||
fun enterName(name: String) = fillEditText(R.id.update_name, name)
|
||||
fun selectImage() = clickButton(R.id.profile_img)
|
||||
fun submitProfileUpdate() = clickButton(R.id.submit_update_profile)
|
||||
|
||||
fun submitForm(name: String) {
|
||||
selectImage()
|
||||
// TODO: select image in gallery
|
||||
enterName(name)
|
||||
submitProfileUpdate()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package h_mal.appttude.com.driver.robots
|
||||
|
||||
import h_mal.appttude.com.driver.BaseTestRobot
|
||||
import h_mal.appttude.com.driver.R
|
||||
|
||||
fun vehicleScreen(func: VehicleScreenRobot.() -> Unit) = VehicleScreenRobot().apply { func() }
|
||||
class VehicleScreenRobot : BaseTestRobot() {
|
||||
|
||||
fun vehicleProfile() = clickButton(R.id.vehicle_prof)
|
||||
fun insurance() = clickButton(R.id.insurance)
|
||||
fun mot() = clickButton(R.id.mot)
|
||||
fun logbook() = clickButton(R.id.logbook)
|
||||
fun privateHireVehicleLicense() = clickButton(R.id.private_hire_vehicle_license)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user