From 6de2cf489dd753e4e7f9fd84225b545fcb2d3429 Mon Sep 17 00:00:00 2001 From: Conrad Chan Date: Fri, 12 Oct 2018 16:10:06 -0700 Subject: [PATCH] Chore: Update preview version to 1.54.0 in functional tests (#239) --- functional-tests/README.md | 9 +++++++++ functional-tests/views/index.pug | 4 ++-- yarn.lock | 8 +++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/functional-tests/README.md b/functional-tests/README.md index cb81343df..ff072cc5d 100644 --- a/functional-tests/README.md +++ b/functional-tests/README.md @@ -13,3 +13,12 @@ 3) Start Selenium `selenium-standalone start` 4) In a separate terminal, build BoxAnnotations `yarn run selenium-build` 5) Run functional tests `FILE_ID="285568802145" FILE_VERSION_ID="300497533713" yarn run functional-tests` + +### Running Specific Tests +1) Start Selenium `selenium-standalone start` +2) In a separate terminal, run `FILE_ID="" FILE_VERSION_ID="" ACCESS_TOKEN="" CLIENT_ID="" node functional-tests/app.js` + * You can find existing `file-id` and `file-version-id` in the .travis.yml file +3) In yet another separate terminal, run `FILE_ID="" FILE_VERSION_ID="file-version-id>" ACCESS_TOKEN="" CLIENT_ID="" node ./node_modules/codeceptjs/bin/codecept.js run --grep "" --verbose` + * Make sure the `file-id` and `file-version-id` values are the same between these two terminals :) + * an example of `` would be "@doc" to run all the tests with "@doc" in the name +4) You should see a separate Chrome browser instance appear and run the tests diff --git a/functional-tests/views/index.pug b/functional-tests/views/index.pug index 9c85d713a..a3ed2a3b3 100644 --- a/functional-tests/views/index.pug +++ b/functional-tests/views/index.pug @@ -4,8 +4,8 @@ html link(rel="stylesheet" href='annotations.css') script(src='annotations.js') - link(rel="stylesheet" href='https://cdn01.boxcdn.net/platform/preview/1.37.0/en-US/preview.css') - script(src='https://cdn01.boxcdn.net/platform/preview/1.37.0/en-US/preview.js') + link(rel="stylesheet" href='https://cdn01.boxcdn.net/platform/preview/1.54.0/en-US/preview.css') + script(src='https://cdn01.boxcdn.net/platform/preview/1.54.0/en-US/preview.js') style. .preview-container { border: 1px solid #eee; diff --git a/yarn.lock b/yarn.lock index c360e6eb4..19219b516 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4661,7 +4661,7 @@ https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" -https-proxy-agent@^2.1.0: +https-proxy-agent@^2.1.0, https-proxy-agent@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0" dependencies: @@ -8778,6 +8778,12 @@ sass-loader@^7.1.0: pify "^3.0.0" semver "^5.5.0" +saucelabs@^1.5.0: + version "1.5.0" + resolved "https://box.jfrog.io/box/api/npm/boxnpm/saucelabs/-/saucelabs-1.5.0.tgz#9405a73c360d449b232839919a86c396d379fd9d" + dependencies: + https-proxy-agent "^2.2.1" + sax@^1.2.4, sax@~1.2.1: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"