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

Testing: Adding some e2e tests for mac application #515

Merged
merged 45 commits into from Oct 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
95df802
First Attempt CI
bsessions85 Sep 4, 2018
d9e93d0
fix yml
bsessions85 Sep 4, 2018
99deb12
Trying to run test on mac
bsessions85 Sep 4, 2018
8869fc3
run chromedriver in background
bsessions85 Sep 4, 2018
6615ea7
changing app path
bsessions85 Sep 4, 2018
62123ee
Trying to split out tests
bsessions85 Sep 4, 2018
b0987ce
another try
bsessions85 Sep 4, 2018
93733ac
another attempts
bsessions85 Sep 4, 2018
0c07b40
try to get screenshots
bsessions85 Sep 6, 2018
25bc93d
Try screenshots again
bsessions85 Sep 6, 2018
79d6a93
a few changes
bsessions85 Sep 6, 2018
a52a5c1
fixing imports
bsessions85 Sep 6, 2018
2943ac8
Merge branch 'develop' into try/e2e-testing
bsessions85 Sep 7, 2018
32d84e7
update
bsessions85 Sep 7, 2018
471cdd9
Try again
bsessions85 Sep 7, 2018
21cbd2e
Trying a sleep
bsessions85 Sep 10, 2018
8106e77
try different chromedriver
bsessions85 Sep 10, 2018
a45df81
forgot package lock
bsessions85 Sep 10, 2018
fcfde0c
Try closing and reopening
bsessions85 Sep 10, 2018
2c29661
Trying on linux
bsessions85 Sep 10, 2018
8463ffb
typo
bsessions85 Sep 10, 2018
bb4f0a3
adding a sleep
bsessions85 Sep 10, 2018
fbb80ba
trying updates
bsessions85 Sep 10, 2018
391ecfc
trying different display
bsessions85 Sep 11, 2018
d87b59e
try changing xvfb display to get vnc working
bsessions85 Sep 11, 2018
a5cf912
Try delay after starting xvfb
bsessions85 Sep 11, 2018
1f8b143
Merge branch 'try/e2e-testing' of github.com:Automattic/wp-desktop in…
bsessions85 Sep 14, 2018
d807eff
trying better tests
bsessions85 Sep 14, 2018
52285f1
Trying new args
bsessions85 Sep 17, 2018
74a573a
trying spectron
bsessions85 Sep 17, 2018
d62fa53
cleaning up config to use spectron
bsessions85 Sep 17, 2018
6633d3d
Revert "cleaning up config to use spectron"
bsessions85 Sep 18, 2018
2da7a70
Revert "trying spectron"
bsessions85 Sep 18, 2018
c395cb6
Adding some more tests, along with corresponding page objects
bsessions85 Sep 28, 2018
73ad049
fixing some things that shouldn't have changed
bsessions85 Sep 28, 2018
a10bb00
Removing unneeded stuff
bsessions85 Sep 28, 2018
562f45b
Merge branch 'develop' into try/e2e-testing
bsessions85 Oct 17, 2018
295330d
update calypso
bsessions85 Oct 17, 2018
a634a07
Adding nan to get tests passing
bsessions85 Oct 18, 2018
9430288
Set longer timeout
bsessions85 Oct 18, 2018
4270e7b
remove linux tests
bsessions85 Oct 18, 2018
c540fc7
Moving timeout
bsessions85 Oct 18, 2018
509bc92
trying to close and re-open
bsessions85 Oct 18, 2018
fa1bdaa
trying maximized
bsessions85 Oct 19, 2018
add7082
Unneeded files
bsessions85 Oct 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 11 additions & 5 deletions .circleci/config.yml
Expand Up @@ -63,7 +63,7 @@ references:
if [ -n "${CALYPSO_HASH}" ]; then
# cache bust e2e tests
uuidgen > calypso-current-hash
else
else
git rev-parse @:./calypso > calypso-current-hash
fi
calypso_restore_cache: &calypso_restore_cache
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
command: |
apt-get update
apt-get -y install libxkbfile-dev libxkbfile-dev:i386 libxss-dev libx11-dev:i386
- run:
- run:
name: Install dependencies
name: Npm install
command: |
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
source $HOME/.nvm/nvm.sh
nvm use
make package BUILD_PLATFORM=w
- run:
- run:
name: Release cleanup
command: |
set +e
Expand Down Expand Up @@ -291,13 +291,19 @@ jobs:
make package BUILD_PLATFORM=m
# Temporarily disable the test
# TODO: Fixme – seems to be an issue with `portscanner`
# - run:
# - run:
# name: Test
# command: |
# source $HOME/.nvm/nvm.sh
# nvm use
# make test TEST_PRODUCTION_BINARY=true
- run:
- run:
name: e2e Tests
command: |
export BINARY_PATH="./release/mac/WordPress.com.app/Contents/MacOS/WordPress.com"
./node_modules/.bin/chromedriver >/dev/null 2>&1 &
./node_modules/.bin/mocha test/tests/e2e.js
- run:
name: Release cleanup
command: |
set +e
Expand Down