Skip to content
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

Integrate spectron (UPLOAD-440) #1360

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d01c07f
initial setup
ginnyyadav Jan 7, 2021
229cc8d
Update login.spec.js
ginnyyadav Jan 7, 2021
7e12185
Update yarn.lock
ginnyyadav Jan 7, 2021
dedd28b
introduce page objects
ginnyyadav Jan 8, 2021
9ccaca1
create basic smoke test
ginnyyadav Jan 8, 2021
c680474
rename config file
ginnyyadav Jan 8, 2021
43fee77
attempt to run spectron on CI
ginnyyadav Jan 8, 2021
266707d
attmept to dismiss modal driver on ci
ginnyyadav Jan 9, 2021
83e23d1
attempt at modal driver update dismiss button
ginnyyadav Jan 9, 2021
f12ae9c
dismissing driver modal attempt
ginnyyadav Jan 9, 2021
747de4a
get spectron tests to run on appveyor
ginnyyadav Jan 9, 2021
84fd7bb
create env variables for sensitive info
ginnyyadav Jan 26, 2021
b7fb43f
fix appveyor variables
ginnyyadav Jan 26, 2021
e30eefa
Revert "fix appveyor variables"
ginnyyadav Jan 26, 2021
e90bd84
versioning
ginnyyadav Jan 26, 2021
aa73bf9
remove mocha in favor of jest
ginnyyadav Jan 28, 2021
6476acb
reconfigure file structure for jest
ginnyyadav Jan 28, 2021
3aa1907
run tests with jest command
ginnyyadav Jan 28, 2021
77c7ae5
don't run spectron tests with unit tests
ginnyyadav Jan 28, 2021
8b2f71c
initial tests with better syntax
ginnyyadav Jan 28, 2021
e4b92d1
more specific selectors for links
ginnyyadav Jan 28, 2021
d0df5d9
verify we reached the upload screen
ginnyyadav Jan 28, 2021
37b5c33
add selectors for test implementation later
ginnyyadav Jan 28, 2021
3ee3068
update readme to reflect spectron tests
ginnyyadav Jan 28, 2021
6b5d8b2
attempt at fixing windows execution
ginnyyadav Jan 28, 2021
1ab0eec
another attempt at fixing path for windows
ginnyyadav Jan 29, 2021
8d07102
removing all cross-platform non-friendly paths
ginnyyadav Jan 29, 2021
53b1d91
works locally on windows now
ginnyyadav Jan 29, 2021
d3a74c0
set global jest timeout modify paths once more
ginnyyadav Feb 1, 2021
869f857
simplify login
ginnyyadav Feb 3, 2021
0f8fa63
run jest with default configuration
ginnyyadav Feb 3, 2021
08a0b82
fix driver modal dismiss
ginnyyadav Feb 3, 2021
81877b4
make sure uploader is alway in focus
ginnyyadav Feb 3, 2021
3b92fde
update lock-file
ginnyyadav Feb 3, 2021
123972a
longer timeout for windows
ginnyyadav Feb 3, 2021
fae161d
add remote desktop for troubleshooting
ginnyyadav Feb 3, 2021
ac5aa2b
set rdp password in project
ginnyyadav Feb 3, 2021
5e4f75c
wait for login button to load before clicking on it
ginnyyadav Feb 3, 2021
82afaae
waiting for login button to be visible
ginnyyadav Feb 3, 2021
0cc20df
pause for login button to load
ginnyyadav Feb 3, 2021
3c47c7b
make sure uploader windows close on windows
ginnyyadav Feb 3, 2021
b83d16b
Update README.md
ginnyyadav Feb 4, 2021
a5f6f42
remove run from yarn command
ginnyyadav Feb 4, 2021
764cc48
Delete package-lock.json
ginnyyadav Feb 4, 2021
f174a26
Merge branch 'integrate-spectron' of https://github.com/tidepool-org/…
ginnyyadav Feb 4, 2021
f01ad83
remove test versioning for merge
ginnyyadav Feb 10, 2021
e959c4f
Merge branch 'master' into integrate-spectron
ginnyyadav Feb 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .mocharc.yml

This file was deleted.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ or
```bash
$ yarn test
```
To run the spectron UI tests in this repository use:

```bash
$ yarn run spectron-test
ginnyyadav marked this conversation as resolved.
Show resolved Hide resolved
```
you will need to have these environment variables set to run the tests:

`SPECTRON_USER_EMAIL: <valid username for Tidepool>`<br>
`SPECTRON_USER_PASSWORD: <valid password for Tidepool>`

## Linting & Code Style

Expand Down Expand Up @@ -153,6 +162,8 @@ We use the following environment variables on the CI servers:
| PUBLISH_FOR_PULL_REQUEST | Both | `true`, build artefact for PR |
| ROLLBAR_POST_TOKEN | Both | Rollbar logging |
| FTP_AV_PASSWORD_TIDEPOOL | Appveyor | AV submission |
| SPECTRON_USER_EMAIL | Both | Valid Tidepool username for Spectron tests |
| SPECTRON_USER_PASSWORD | Both | Valid Tidepool password for SPectron tests |
ginnyyadav marked this conversation as resolved.
Show resolved Hide resolved

## Editor Configuration
**Atom**
Expand Down
Loading