From d1970470c9d9c8635ced3b33e85ac4840f0779a5 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 1 Apr 2023 11:27:20 +0200 Subject: [PATCH] inverse firstName and lastName --- src/workers/CommandorPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 04bfa4d..4ef1a4c 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -201,10 +201,10 @@ class CommandorPage { if (!this.isNameInput) { await page.locator(LAST_NAME).focus() await delay(getRandomWaitTime()) - await page.locator(LAST_NAME).fill(this.contact.lastName) + await page.locator(LAST_NAME).fill(this.contact.firstName) await page.locator(FIRST_NAME).focus() await delay(getRandomWaitTime()) - await page.locator(FIRST_NAME).fill(this.contact.firstName) + await page.locator(FIRST_NAME).fill(this.contact.lastName) this.isNameInput = true } }