-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for download #1368
Add tests for download #1368
Conversation
7d9e919
to
ca200e8
Compare
41b180c
to
ca200e8
Compare
e863894
to
ca200e8
Compare
68efe6d
to
bc70bed
Compare
bc70bed
to
9dbc67d
Compare
9dbc67d
to
33e97a9
Compare
5627fda
to
b399ef4
Compare
c034544
to
8a24d80
Compare
91ee3f0
to
60311eb
Compare
86bd033
to
70bcb6e
Compare
I'm worried about this test, for a couple of reasons:
Is there any way to mitigate these issues? |
0823576
to
fdc3b86
Compare
I have to admit these are all valid points. I guess the original intention was to attempt to download and install the kit from a zipped file but as we are doing something similar I changed it to just check that the link to download the latest version of the kit as a zip file does indeed download the latest version of the code. |
e6ed952
to
55d98cc
Compare
76bd988
to
faffd4d
Compare
faffd4d
to
0acda98
Compare
strategy: | ||
fail-fast: false # continue other tests if one test in matrix fails | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
os: [macos-latest, windows-latest, ubuntu-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to test this across the whole matrix, I think running it just on ubuntu and the latest version of Node should be fine.
- run: npm run test:download | ||
env: | ||
CYPRESS_REQUEST_TIMEOUT: 20000 | ||
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000 | ||
CYPRESS_PAGE_LOAD_TIMEOUT: 150000 | ||
CYPRESS_RETRIES: 3 | ||
|
||
- run: npm run test:download:package | ||
env: | ||
CYPRESS_REQUEST_TIMEOUT: 20000 | ||
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000 | ||
CYPRESS_PAGE_LOAD_TIMEOUT: 150000 | ||
CYPRESS_RETRIES: 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's run this just once, as a package
- run: npm run test:download | |
env: | |
CYPRESS_REQUEST_TIMEOUT: 20000 | |
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000 | |
CYPRESS_PAGE_LOAD_TIMEOUT: 150000 | |
CYPRESS_RETRIES: 3 | |
- run: npm run test:download:package | |
env: | |
CYPRESS_REQUEST_TIMEOUT: 20000 | |
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000 | |
CYPRESS_PAGE_LOAD_TIMEOUT: 150000 | |
CYPRESS_RETRIES: 3 | |
- run: npm run test:download:package | |
env: | |
CYPRESS_REQUEST_TIMEOUT: 20000 | |
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000 | |
CYPRESS_PAGE_LOAD_TIMEOUT: 150000 | |
CYPRESS_RETRIES: 3 |
Tests to download and extract the latest zip file of the prototype kit.
Please note that as cypress has an issue testing a download from an external page, I have created a custom cypress command to retrieve the href of the download and then download the file manually.
Note also that the download test runs in a seperate action.