Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
82e1de3b
Commit
82e1de3b
authored
Jun 15, 2016
by
Dave Hoover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Having another go at stable in-browser testing
parent
6c742368
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
.travis.yml
.travis.yml
+1
-1
README.md
README.md
+4
-4
nightwatch.json
nightwatch.json
+3
-3
new-file-test.js
test-browser/new-file-test.js
+1
-1
smoke-test.js
test-browser/smoke-test.js
+1
-1
No files found.
.travis.yml
View file @
82e1de3b
...
...
@@ -4,7 +4,7 @@ node_js:
before_script
:
-
npm run serve &
script
:
-
npm run lint && npm run test && npm run build && nightwatch --env
chrom
e
-
npm run lint && npm run test && npm run build && nightwatch --env
remot
e
-
pkill node
addons
:
sauce_connect
:
...
...
README.md
View file @
82e1de3b
...
...
@@ -51,11 +51,11 @@ To run the Selenium tests via nightwatch serve the app through a local web serve
Then you will need to either:
1.
Have a Selenium server running locally on port 4444
along with the chromedriver installed
.
1.
Have a Selenium server running locally on port 4444.
*
Run:
`./node_modules/nightwatch/bin/nightwatch --env local`
1.
Or, install
SauceConnect and run it locally
`sc -u <USERNAME> -k <ACCESS_KEY>`
(see .travis.yml for values)
*
Run:
`
./node_modules/nightwatch/bin/nightwatch --env chrome`
1.
Or, install
and run SauceConnect.
*
Run:
`
sc -u <USERNAME> -k <ACCESS_KEY>`
(see .travis.yml for values)
*
Run:
`./node_modules/nightwatch/bin/nightwatch --env remote`
## Usage as a Chrome Extension
...
...
nightwatch.json
View file @
82e1de3b
...
...
@@ -21,9 +21,9 @@
"waitForConditionTimeout"
:
60000
}
},
"
chrom
e"
:
{
"
remot
e"
:
{
"desiredCapabilities"
:
{
"browserName"
:
"
chrome
"
,
"browserName"
:
"
firefox
"
,
"javascriptEnabled"
:
true
,
"acceptSslCerts"
:
true
}
...
...
@@ -33,7 +33,7 @@
"selenium_port"
:
4444
,
"selenium_host"
:
"localhost"
,
"desiredCapabilities"
:
{
"browserName"
:
"
chrome
"
,
"browserName"
:
"
firefox
"
,
"javascriptEnabled"
:
true
,
"acceptSslCerts"
:
true
}
...
...
test-browser/new-file-test.js
View file @
82e1de3b
...
...
@@ -2,7 +2,7 @@ module.exports = {
'New file test'
:
function
(
browser
)
{
browser
.
url
(
'http://127.0.0.1:8080'
)
.
waitForElementVisible
(
'.newFile'
,
5
000
)
.
waitForElementVisible
(
'.newFile'
,
10
000
)
.
click
(
'.newFile'
)
.
assert
.
containsText
(
'.active'
,
'Untitled'
)
.
end
();
...
...
test-browser/smoke-test.js
View file @
82e1de3b
...
...
@@ -2,7 +2,7 @@ module.exports = {
'Smoke test'
:
function
(
browser
)
{
browser
.
url
(
'http://127.0.0.1:8080'
)
.
waitForElementVisible
(
'#righthand-panel'
,
5
000
)
.
waitForElementVisible
(
'#righthand-panel'
,
10
000
)
.
assert
.
containsText
(
'#righthand-panel'
,
'Solidity version'
)
.
end
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment