mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-24 08:02:27 +00:00
fixed nightwatch tests, upgraded chromedriver
This commit is contained in:
1 parent
8332fdebfe
commit
02c461ff63
4 files changed
+79
-28
No files matched your search
+50
-23
@@ -1,34 +1,61 @@
|
||||
{
|
||||
src_folders : ["test/web"],
|
||||
|
||||
test_settings: {
|
||||
default: {
|
||||
launch_url: 'https://sehugg.github.io/8bitworkshop/'
|
||||
},
|
||||
"src_folders": ["test/web"],
|
||||
|
||||
safari: {
|
||||
desiredCapabilities : {
|
||||
browserName : 'safari',
|
||||
alwaysMatch: {
|
||||
acceptInsecureCerts: false
|
||||
}
|
||||
"test_settings": {
|
||||
"default": {
|
||||
"launch_url": "http://localhost:8000/",
|
||||
"desiredCapabilities": {
|
||||
"browserName": "chrome"
|
||||
},
|
||||
webdriver: {
|
||||
port: 4445,
|
||||
start_process: true,
|
||||
server_path: '/usr/bin/safaridriver-doesntwork'
|
||||
"webdriver": {
|
||||
"start_process": true,
|
||||
"server_path": "node_modules/.bin/chromedriver",
|
||||
"port": 9515
|
||||
},
|
||||
"screenshots": {
|
||||
"enabled": true,
|
||||
"path": "",
|
||||
"on_failure": true,
|
||||
"on_error": true
|
||||
}
|
||||
},
|
||||
|
||||
firefox: {
|
||||
desiredCapabilities : {
|
||||
browserName : 'firefox'
|
||||
"chrome": {
|
||||
"desiredCapabilities": {
|
||||
"browserName": "chrome",
|
||||
"chromeOptions": {
|
||||
"args": ["--headless=new", "--no-sandbox", "--disable-gpu", "--window-size=1280,1024"]
|
||||
}
|
||||
},
|
||||
"webdriver": {
|
||||
"start_process": true,
|
||||
"server_path": "node_modules/.bin/chromedriver",
|
||||
"port": 9515
|
||||
}
|
||||
},
|
||||
|
||||
webdriver: {
|
||||
start_process: true,
|
||||
port: 4444,
|
||||
server_path: require('geckodriver').path
|
||||
"safari": {
|
||||
"desiredCapabilities": {
|
||||
"browserName": "safari",
|
||||
"alwaysMatch": {
|
||||
"acceptInsecureCerts": false
|
||||
}
|
||||
},
|
||||
"webdriver": {
|
||||
"port": 4445,
|
||||
"start_process": true,
|
||||
"server_path": "/usr/bin/safaridriver-doesntwork"
|
||||
}
|
||||
},
|
||||
|
||||
"firefox": {
|
||||
"desiredCapabilities": {
|
||||
"browserName": "firefox"
|
||||
},
|
||||
"webdriver": {
|
||||
"start_process": true,
|
||||
"port": 4444,
|
||||
"server_path": "node_modules/.bin/geckodriver"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+5
-4
@@ -22,6 +22,7 @@
|
||||
"atob": "^2.1.x",
|
||||
"binaryen": "^101.0.0",
|
||||
"btoa": "^1.2.x",
|
||||
"chromedriver": "^154.0.0",
|
||||
"clipboard": "^2.0.6",
|
||||
"codemirror": "^6.0.2",
|
||||
"dompurify": "^3.1.7",
|
||||
@@ -65,7 +66,7 @@
|
||||
"typescript-formatter": "^7.2.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"chromedriver": "^151.0.5",
|
||||
"chromedriver": "^154.0.0",
|
||||
"heapdump": "^0.3.15",
|
||||
"jsfuzz": "^1.0.14",
|
||||
"nightwatch": "^3.12.2"
|
||||
@@ -2604,9 +2605,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/chromedriver": {
|
||||
"version": "151.0.5",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-151.0.5.tgz",
|
||||
"integrity": "sha512-oPI/VtTeLePbkTOI5o4yvEOlcdpmqEdqQNLZbyu5ha6kpDQYfDRuliisDiph29hBK/UzHSmOyZFKX1mE3efYOQ==",
|
||||
"version": "154.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-154.0.0.tgz",
|
||||
"integrity": "sha512-kn+ENZ2lEPAmeDTNNBbVw6Xt4KAr6M4EFcgeV4lUREgJWHVZBu4fFc+OFivtuf5Q9jM/qSmAcQ3MdWtdOE6mVA==",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@
|
||||
"typescript-formatter": "^7.2.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"chromedriver": "^151.0.5",
|
||||
"chromedriver": "^154.0.0",
|
||||
"heapdump": "^0.3.15",
|
||||
"jsfuzz": "^1.0.14",
|
||||
"nightwatch": "^3.12.2"
|
||||
|
||||
@@ -64,6 +64,29 @@ exports['test embed IDE in iframe'] = function(browser) {
|
||||
*/
|
||||
}
|
||||
|
||||
exports['test narrow tab layout'] = function(browser) {
|
||||
|
||||
// below the 760px breakpoint the panes become tabs (see ide/layout.ts)
|
||||
browser.windowSize('current', 600, 900)
|
||||
.url(IDEURL + QS)
|
||||
.waitForElementNotVisible('#compile_spinner', time=10000)
|
||||
.waitForElementNotVisible('#error_alert')
|
||||
.waitForElementVisible('#mobiletabs')
|
||||
.click('.mobiletab[data-tab="emulator"]')
|
||||
.waitForElementVisible('#emuscreen')
|
||||
.waitForElementVisible('.emuvideo')
|
||||
.click('.mobiletab[data-tab="editor"]')
|
||||
.waitForElementVisible('#workspace')
|
||||
.waitForElementNotVisible('#emuscreen')
|
||||
|
||||
// widening the window should restore the side-by-side panes
|
||||
browser.windowSize('current', 1280, 1024)
|
||||
.waitForElementNotVisible('#mobiletabs')
|
||||
.waitForElementVisible('#workspace')
|
||||
.waitForElementVisible('#emuscreen')
|
||||
.waitForElementVisible('.emuvideo')
|
||||
}
|
||||
|
||||
exports['test standalone player'] = function(browser) {
|
||||
|
||||
browser.url(PLAY_C64)
|
||||
|
||||
Reference in new issue
Block a user