Merge branch 'master' into feature/gui
# Conflicts: # clear_data.sh
This commit is contained in:
@@ -36,6 +36,10 @@ adb -s 835dca3e shell am start -n com.android.chrome/com.google.android.apps.chr
|
|||||||
adb -s d54e946 shell pm clear com.android.chrome
|
adb -s d54e946 shell pm clear com.android.chrome
|
||||||
adb -s d54e946 shell am set-debug-app --persistent com.android.chrome
|
adb -s d54e946 shell am set-debug-app --persistent com.android.chrome
|
||||||
adb -s d54e946 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
|
adb -s d54e946 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
|
||||||
|
#vivo tel
|
||||||
|
adb -s 926f2061 shell pm clear com.android.chrome
|
||||||
|
adb -s 926f2061 shell am set-debug-app --persistent com.android.chrome
|
||||||
|
adb -s 926f2061 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
|
||||||
|
|
||||||
adb -s 751005221815 shell pm clear com.android.chrome
|
adb -s 751005221815 shell pm clear com.android.chrome
|
||||||
adb -s 751005221815 shell am set-debug-app --persistent com.android.chrome
|
adb -s 751005221815 shell am set-debug-app --persistent com.android.chrome
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ const TIME_OUT = 60 * 1000 * 4//4 mins
|
|||||||
const CONFIRMED_MESSAGE = "Your request for a Leather Goods appointment has been registered"
|
const CONFIRMED_MESSAGE = "Your request for a Leather Goods appointment has been registered"
|
||||||
const CONFIRMED_MESSAGE_FR = "Votre demande de rendez-vous Maroquinerie a bien été enregistrée et nous vous en remercions."
|
const CONFIRMED_MESSAGE_FR = "Votre demande de rendez-vous Maroquinerie a bien été enregistrée et nous vous en remercions."
|
||||||
const MESSAGE_URL_VALIDATION_FR = "Nous avons envoyé un lien par e-mail."
|
const MESSAGE_URL_VALIDATION_FR = "Nous avons envoyé un lien par e-mail."
|
||||||
|
const MESSAGE_URL_VALIDATION_EN = "Please click on the link we sent by email"
|
||||||
const DOUBLE_REQUEST_ERROR_MESSAGE = "A request with the same data has already been validated today."
|
const DOUBLE_REQUEST_ERROR_MESSAGE = "A request with the same data has already been validated today."
|
||||||
const DOUBLE_REQUEST_ERROR_MESSAGE_FR = "Une demande avec les données saisies a déjà été validée aujourd’hui."
|
const DOUBLE_REQUEST_ERROR_MESSAGE_FR = "Une demande avec les données saisies a déjà été validée aujourd’hui."
|
||||||
const TOO_MANY_REQUEST_ERROR_MESSAGE = "Due to a large number of requests"
|
const TOO_MANY_REQUEST_ERROR_MESSAGE = "Due to a large number of requests"
|
||||||
@@ -147,12 +148,10 @@ class CommandorPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async inputName(page) {
|
async inputName(page) {
|
||||||
|
try {
|
||||||
|
if (!page.isClosed()) {
|
||||||
await page.locator(LAST_NAME).focus()
|
await page.locator(LAST_NAME).focus()
|
||||||
await delay(getRandomWaitTime())
|
await delay(getRandomWaitTime())
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
if (!page.isClosed()) {
|
|
||||||
await page.locator(LAST_NAME).fill(this.contact.lastName)
|
await page.locator(LAST_NAME).fill(this.contact.lastName)
|
||||||
await page.locator(FIRST_NAME).focus()
|
await page.locator(FIRST_NAME).focus()
|
||||||
await delay(getRandomWaitTime())
|
await delay(getRandomWaitTime())
|
||||||
@@ -258,6 +257,8 @@ class CommandorPage {
|
|||||||
try {
|
try {
|
||||||
if (!page.isClosed()) {
|
if (!page.isClosed()) {
|
||||||
page.evaluate((solution) => {
|
page.evaluate((solution) => {
|
||||||
|
let element = document.getElementById("g-recaptcha-response");
|
||||||
|
if (element != null)
|
||||||
document.getElementById("g-recaptcha-response").innerHTML = solution;
|
document.getElementById("g-recaptcha-response").innerHTML = solution;
|
||||||
}, solution)
|
}, solution)
|
||||||
this.clickValid();
|
this.clickValid();
|
||||||
@@ -286,7 +287,7 @@ class CommandorPage {
|
|||||||
if (this.isFillingFields)
|
if (this.isFillingFields)
|
||||||
await this.getErrors()
|
await this.getErrors()
|
||||||
} else {
|
} else {
|
||||||
if (content.includes(MESSAGE_URL_VALIDATION_FR)) {
|
if (content.includes(MESSAGE_URL_VALIDATION_FR) || content.includes(MESSAGE_URL_VALIDATION_EN)) {
|
||||||
console.log("successful");
|
console.log("successful");
|
||||||
await this.push_message_to_queue(PublishType.SUCCESS);
|
await this.push_message_to_queue(PublishType.SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user