use mail instead of uuid to save no id appointment

This commit is contained in:
2023-05-25 14:58:08 +02:00
parent 5f2476a169
commit 1527bc4d5b
+3 -3
View File
@@ -317,12 +317,12 @@ class CommandorPage {
async inputPassportId(page) { async inputPassportId(page) {
try { try {
if (this.browser.isConnected()) { if (this.browser.isConnected()) {
// if (!this.isPasspordInput) { if (!this.isPasspordInput) {
await page.focus(PASSPORT_ID); await page.focus(PASSPORT_ID);
await delay(getRandomWaitTime()); await delay(getRandomWaitTime());
await page.keyboard.type(this.contact.passportNumber.toString()) await page.keyboard.type(this.contact.passportNumber.toString())
this.isPasspordInput = true; this.isPasspordInput = true;
// } }
} }
} catch (e) { } catch (e) {
log(e); log(e);
@@ -562,7 +562,7 @@ class CommandorPage {
let splitedUrl = url.split("/"); let splitedUrl = url.split("/");
let id = splitedUrl[splitedUrl.length - 1]; let id = splitedUrl[splitedUrl.length - 1];
if (id === "register") { if (id === "register") {
id = crypto.randomUUID() id = this.contact.mail;
} }
if (url === "https://rendezvousparis.hermes.com/client/welcome") { if (url === "https://rendezvousparis.hermes.com/client/welcome") {
return return