Skip to content

Commit 469908b

Browse files
committed
1 parent 44b3688 commit 469908b

File tree

3 files changed

+93
-33
lines changed

3 files changed

+93
-33
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"postcss": "^8.4.38",
8181
"postcss-preset-env": "^9.5.4",
8282
"prettier": "^2.7.0",
83-
"puppeteer": "^14.3.0",
83+
"puppeteer": "19.11.1",
8484
"puppeteer-extra": "^3.2.3",
8585
"puppeteer-extra-plugin-stealth": "^2.9.0",
8686
"rollup": "^4.18.0",

test/utils/open-addon.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const openAddon = async (page) => {
22
await page.goto(process.env.SHEET_URL);
33

4-
await page.waitForTimeout(30000); // pause for 5 seconds
4+
await page.waitForSelector('a[aria-label="Sign in"]');
55

66
// Create directory for screenshots if it doesn't exist
77
const fs = await import('fs');
@@ -13,9 +13,9 @@ export const openAddon = async (page) => {
1313

1414
// take screenshot
1515
await page.screenshot({
16-
path: path.join(screenshotDir, 'main-spreadsheet-page.png'),
16+
path: path.join(screenshotDir, `main-spreadsheet-page-${Date.now()}.png`),
1717
});
18-
await page.click('a:nth-child(2)'); // click on signin button
18+
await page.click('a[aria-label="Sign in"]'); // click on signin button
1919

2020
await page.waitForSelector('input[name="identifier"]', { visible: true });
2121
await page.type('input[name="identifier"]', process.env.EMAIL); // type email

yarn.lock

Lines changed: 89 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,20 @@
19081908
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f"
19091909
integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==
19101910

1911+
"@puppeteer/[email protected]":
1912+
version "0.5.0"
1913+
resolved "https://registry.yarnpkg.com/@puppeteer/browsers/-/browsers-0.5.0.tgz#1a1ee454b84a986b937ca2d93146f25a3fe8b670"
1914+
integrity sha512-Uw6oB7VvmPRLE4iKsjuOh8zgDabhNX67dzo8U/BB0f9527qx+4eeUs+korU98OhG5C4ubg7ufBgVi63XYwS6TQ==
1915+
dependencies:
1916+
debug "4.3.4"
1917+
extract-zip "2.0.1"
1918+
https-proxy-agent "5.0.1"
1919+
progress "2.0.3"
1920+
proxy-from-env "1.1.0"
1921+
tar-fs "2.1.1"
1922+
unbzip2-stream "1.4.3"
1923+
yargs "17.7.1"
1924+
19111925
"@react-aria/ssr@^3.5.0":
19121926
version "3.9.8"
19131927
resolved "https://registry.yarnpkg.com/@react-aria/ssr/-/ssr-3.9.8.tgz#9c06f1860abac629517898c1b5424be5d03bc112"
@@ -3177,6 +3191,13 @@ chownr@^1.1.1:
31773191
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
31783192
integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==
31793193

3194+
3195+
version "0.4.7"
3196+
resolved "https://registry.yarnpkg.com/chromium-bidi/-/chromium-bidi-0.4.7.tgz#4c022c2b0fb1d1c9b571fadf373042160e71d236"
3197+
integrity sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==
3198+
dependencies:
3199+
mitt "3.0.0"
3200+
31803201
ci-info@^3.2.0:
31813202
version "3.9.0"
31823203
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4"
@@ -3344,6 +3365,16 @@ core-js-compat@^3.40.0:
33443365
dependencies:
33453366
browserslist "^4.24.4"
33463367

3368+
3369+
version "8.1.3"
3370+
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.1.3.tgz#0e614a118fcc2d9e5afc2f87d53cd09931015689"
3371+
integrity sha512-/UkO2JKI18b5jVMJUp0lvKFMpa/Gye+ZgZjKD+DGEN9y7NRcf/nK1A0sp67ONmKtnDCNMS44E6jrk0Yc3bDuUw==
3372+
dependencies:
3373+
import-fresh "^3.2.1"
3374+
js-yaml "^4.1.0"
3375+
parse-json "^5.0.0"
3376+
path-type "^4.0.0"
3377+
33473378
cosmiconfig@^7.0.0:
33483379
version "7.1.0"
33493380
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6"
@@ -3554,10 +3585,10 @@ detect-newline@^3.0.0:
35543585
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
35553586
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
35563587

3557-
3558-
version "0.0.1001819"
3559-
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.1001819.tgz#0a98f44cefdb02cc684f3d5e6bd898a1690231d9"
3560-
integrity sha512-G6OsIFnv/rDyxSqBa2lDLR6thp9oJioLsb2Gl+LbQlyoA9/OBAkrTU9jiCcQ8Pnh7z4d6slDiLaogR5hzgJLmQ==
3588+
3589+
version "0.0.1107588"
3590+
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.1107588.tgz#f8cac707840b97cc30b029359341bcbbb0ad8ffa"
3591+
integrity sha512-yIR+pG9x65Xko7bErCUSQaDLrO/P1p3JUzEk7JCU4DowPcGHkTGUGQapcfcLc4qj0UaALwZ+cr0riFgiqpixcg==
35613592

35623593
didyoumean@^1.2.2:
35633594
version "1.2.2"
@@ -5911,6 +5942,11 @@ minimist@^1.2.0, minimist@^1.2.6:
59115942
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707"
59125943
integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
59135944

5945+
5946+
version "3.0.0"
5947+
resolved "https://registry.yarnpkg.com/mitt/-/mitt-3.0.0.tgz#69ef9bd5c80ff6f57473e8d89326d01c414be0bd"
5948+
integrity sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==
5949+
59145950
mixin-object@^2.0.1:
59155951
version "2.0.1"
59165952
resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e"
@@ -6373,7 +6409,7 @@ pixelmatch@^5.1.0:
63736409
dependencies:
63746410
pngjs "^6.0.0"
63756411

6376-
pkg-dir@4.2.0, pkg-dir@^4.2.0:
6412+
pkg-dir@^4.2.0:
63776413
version "4.2.0"
63786414
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
63796415
integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==
@@ -6798,6 +6834,23 @@ punycode@^2.1.0:
67986834
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
67996835
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
68006836

6837+
6838+
version "19.11.1"
6839+
resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-19.11.1.tgz#4c63d7a0a6cd268ff054ebcac315b646eee32667"
6840+
integrity sha512-qcuC2Uf0Fwdj9wNtaTZ2OvYRraXpAK+puwwVW8ofOhOgLPZyz1c68tsorfIZyCUOpyBisjr+xByu7BMbEYMepA==
6841+
dependencies:
6842+
"@puppeteer/browsers" "0.5.0"
6843+
chromium-bidi "0.4.7"
6844+
cross-fetch "3.1.5"
6845+
debug "4.3.4"
6846+
devtools-protocol "0.0.1107588"
6847+
extract-zip "2.0.1"
6848+
https-proxy-agent "5.0.1"
6849+
proxy-from-env "1.1.0"
6850+
tar-fs "2.1.1"
6851+
unbzip2-stream "1.4.3"
6852+
ws "8.13.0"
6853+
68016854
puppeteer-extra-plugin-stealth@^2.9.0:
68026855
version "2.11.2"
68036856
resolved "https://registry.yarnpkg.com/puppeteer-extra-plugin-stealth/-/puppeteer-extra-plugin-stealth-2.11.2.tgz#bd3f5a1781cac8a98c983d148086585a84fcc8f1"
@@ -6845,23 +6898,17 @@ puppeteer-extra@^3.2.3:
68456898
debug "^4.1.1"
68466899
deepmerge "^4.2.2"
68476900

6848-
puppeteer@^14.3.0:
6849-
version "14.4.1"
6850-
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-14.4.1.tgz#6c7437a65f7ba98ef8ad7c2b0f1cf808e91617bb"
6851-
integrity sha512-+H0Gm84aXUvSLdSiDROtLlOofftClgw2TdceMvvCU9UvMryappoeS3+eOLfKvoy4sm8B8MWnYmPhWxVFudAOFQ==
6901+
puppeteer@19.11.1:
6902+
version "19.11.1"
6903+
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-19.11.1.tgz#bb75d518e87b0b4f6ef9bad1ea7e9d1cdcd18a5d"
6904+
integrity sha512-39olGaX2djYUdhaQQHDZ0T0GwEp+5f9UB9HmEP0qHfdQHIq0xGQZuAZ5TLnJIc/88SrPLpEflPC+xUqOTv3c5g==
68526905
dependencies:
6853-
cross-fetch "3.1.5"
6854-
debug "4.3.4"
6855-
devtools-protocol "0.0.1001819"
6856-
extract-zip "2.0.1"
6906+
"@puppeteer/browsers" "0.5.0"
6907+
cosmiconfig "8.1.3"
68576908
https-proxy-agent "5.0.1"
6858-
pkg-dir "4.2.0"
68596909
progress "2.0.3"
68606910
proxy-from-env "1.1.0"
6861-
rimraf "3.0.2"
6862-
tar-fs "2.1.1"
6863-
unbzip2-stream "1.4.3"
6864-
ws "8.7.0"
6911+
puppeteer-core "19.11.1"
68656912

68666913
pure-rand@^6.0.0:
68676914
version "6.1.0"
@@ -7171,20 +7218,20 @@ reusify@^1.0.4:
71717218
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f"
71727219
integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==
71737220

7174-
[email protected], rimraf@^3.0.2:
7175-
version "3.0.2"
7176-
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
7177-
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
7178-
dependencies:
7179-
glob "^7.1.3"
7180-
71817221
rimraf@^2.6.2:
71827222
version "2.7.1"
71837223
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
71847224
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
71857225
dependencies:
71867226
glob "^7.1.3"
71877227

7228+
rimraf@^3.0.2:
7229+
version "3.0.2"
7230+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
7231+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
7232+
dependencies:
7233+
glob "^7.1.3"
7234+
71887235
rollup@^4.18.0, rollup@^4.20.0:
71897236
version "4.40.0"
71907237
resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.40.0.tgz#13742a615f423ccba457554f006873d5a4de1920"
@@ -8259,10 +8306,10 @@ write-file-atomic@^4.0.2:
82598306
imurmurhash "^0.1.4"
82608307
signal-exit "^3.0.7"
82618308

8262-
ws@8.7.0:
8263-
version "8.7.0"
8264-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.7.0.tgz#eaf9d874b433aa00c0e0d8752532444875db3957"
8265-
integrity sha512-c2gsP0PRwcLFzUiA8Mkr37/MI7ilIlHQxaEAtd0uNMbVMoy8puJyafRlm0bV9MbGSabUPeLrRRaqIBcFcA2Pqg==
8309+
ws@8.13.0:
8310+
version "8.13.0"
8311+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0"
8312+
integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==
82668313

82678314
82688315
version "0.6.2"
@@ -8307,6 +8354,19 @@ yargs-parser@^21.1.1:
83078354
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
83088355
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
83098356

8357+
8358+
version "17.7.1"
8359+
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.1.tgz#34a77645201d1a8fc5213ace787c220eabbd0967"
8360+
integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==
8361+
dependencies:
8362+
cliui "^8.0.1"
8363+
escalade "^3.1.1"
8364+
get-caller-file "^2.0.5"
8365+
require-directory "^2.1.1"
8366+
string-width "^4.2.3"
8367+
y18n "^5.0.5"
8368+
yargs-parser "^21.1.1"
8369+
83108370
yargs@^17.3.1:
83118371
version "17.7.2"
83128372
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"

0 commit comments

Comments
 (0)