Skip to content

Commit 5a24261

Browse files
authored
Merge pull request #147 from Accedia/fix/count-of-down-presses-to-add-explanation
Fix/count of down presses to add explanation
2 parents 73c5478 + a95b850 commit 5a24261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

electron-app/src/utils/mitchell_importer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export class Mitchell_Importer extends Importer {
371371
await snooze(250)
372372

373373

374-
await times(6).pressKey(Key.Down); // Select Add New explanation
374+
await times(4).pressKey(Key.Down); // Select Add New explanation
375375
await keyboard.pressKey(Key.Enter); // Press Add new explanation to open the textarea
376376
await keyboard.releaseKey(Key.Enter);
377377
await this.typeMitchellValue(consumableLineNote); // Write the consumableLineNote
@@ -401,7 +401,7 @@ export class Mitchell_Importer extends Importer {
401401
await times(2).pressKey(Key.Down); // Selecting Part Type to be Aftermarket New
402402
await keyboard.pressKey(Key.Enter); // Select it
403403
await keyboard.releaseKey(Key.Enter); // Select it
404-
await snooze(2000);
404+
await snooze(3500);
405405
this.progressUpdater.update();
406406

407407
await this.pressTabButton(7); // focus again on the Part number
@@ -418,7 +418,7 @@ export class Mitchell_Importer extends Importer {
418418

419419
await keyboard.pressKey(Key.Enter); // press More with Enter to open Dropdown
420420
await keyboard.releaseKey(Key.Enter);
421-
await times(6).pressKey(Key.Down); // Select Add New explanation
421+
await times(4).pressKey(Key.Down); // Select Add New explanation
422422
await keyboard.pressKey(Key.Enter); // Press Add new explanation to open the textarea
423423
await keyboard.releaseKey(Key.Enter);
424424
await this.typeMitchellValue(this.BUNDLED_LINE_NOTE); // Write the default bundled line note

0 commit comments

Comments
 (0)