aboutsummaryrefslogtreecommitdiffstats
path: root/tools/zap-deep-profile-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/zap-deep-profile-test.js')
-rw-r--r--tools/zap-deep-profile-test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/zap-deep-profile-test.js b/tools/zap-deep-profile-test.js
index 555b54c..55c7b5d 100644
--- a/tools/zap-deep-profile-test.js
+++ b/tools/zap-deep-profile-test.js
@@ -41,6 +41,8 @@ try {
const zapBtn = await until(() => page.$('.note-actions .zap, button.zap, [aria-label*="zap" i]'), 20000);
check('a post with a zap button', !!zapBtn);
if (zapBtn) {
+ // (to the middle of the screen: at the bottom edge the tap lands on the bottom nav)
+ await zapBtn.evaluate((b) => b.scrollIntoView({ block: 'center' }));
await zapBtn.click();
// whatever the zap ends in, it says so in a toast or on the zap screen
const said = await until(() => page.evaluate(() => {