@rich-automation/lotto 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/lottoService.js
CHANGED
|
@@ -114,8 +114,10 @@ class LottoService {
|
|
|
114
114
|
yield page.select(selectors_1.SELECTORS.PURCHASE_AMOUNT_SELECT, amountString);
|
|
115
115
|
yield page.click(selectors_1.SELECTORS.PURCHASE_AMOUNT_CONFIRM_BTN);
|
|
116
116
|
// click purchase button
|
|
117
|
-
this.logger.debug('[purchase]', 'click purchase button
|
|
117
|
+
this.logger.debug('[purchase]', 'click purchase button');
|
|
118
118
|
yield page.click(selectors_1.SELECTORS.PURCHASE_BTN);
|
|
119
|
+
yield page.wait(500);
|
|
120
|
+
this.logger.debug('[purchase]', 'click purchase confirm button');
|
|
119
121
|
yield page.click(selectors_1.SELECTORS.PURCHASE_CONFIRM_BTN);
|
|
120
122
|
yield page.wait(1000);
|
|
121
123
|
// game result
|
package/lib/esm/lottoService.js
CHANGED
|
@@ -108,8 +108,10 @@ export class LottoService {
|
|
|
108
108
|
yield page.select(SELECTORS.PURCHASE_AMOUNT_SELECT, amountString);
|
|
109
109
|
yield page.click(SELECTORS.PURCHASE_AMOUNT_CONFIRM_BTN);
|
|
110
110
|
// click purchase button
|
|
111
|
-
this.logger.debug('[purchase]', 'click purchase button
|
|
111
|
+
this.logger.debug('[purchase]', 'click purchase button');
|
|
112
112
|
yield page.click(SELECTORS.PURCHASE_BTN);
|
|
113
|
+
yield page.wait(500);
|
|
114
|
+
this.logger.debug('[purchase]', 'click purchase confirm button');
|
|
113
115
|
yield page.click(SELECTORS.PURCHASE_CONFIRM_BTN);
|
|
114
116
|
yield page.wait(1000);
|
|
115
117
|
// game result
|