/* eslint-disable max-len */
// Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/
const Services = {}; loadServices()
// _ _ _ _ _ _ _
// | \ | |(_) | | | | | | | |
// | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__
// | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \
// | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |
// \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|
// __/ |
// |___/
module.exports = {
// An array of folders (excluding subfolders) where your tests are located;
// if this is not specified, the test source must be passed as the second argument to the test runner.
src_folders: [],
plugins: ['vite-plugin-nightwatch'],
// page_objects_path: ['node_modules/nightwatch/examples/pages/'],
// custom_commands_path: ['node_modules/nightwatch/examples/custom-commands/'],
custom_assertions_path: '',
globals_path : 'test/globals.cjs',
test_settings: {
default: {
end_session_on_fail: false,
disable_error_log: false,
launch_url: 'http://localhost:3000',
screenshots: {
enabled: false,
path: 'screens',
on_failure: true
},
desiredCapabilities: {
browserName : 'chrome'
},
webdriver: {
start_process: true,
log_path: false,
server_path: ''
}
},
❯ npx nightwatch test/e2e/specs/v2.js --testcase "delete node from search and ensure it disappears (focused & from search)"
[Node] Test Suite
──────────────────────────────────
ℹ Connected to ChromeDriver on port 9515 (2056ms).
Using: chrome (97.0.4692.99) on MAC OS X.
Running delete node from search and ensure it disappears (focused & from search):
───────────────────────────────────────────────────────────────────────────────────────────────────
ℹ Loaded url http://localhost:3000 in 728ms
✔ Testing if element <#nodeCreateForm> is present (16ms)
✔ Testing if element <#nodeCreateForm button span> contains text 'Question' (29ms)
✔ Testing if element <#focusedPanelFrame #nodeCard #nodeContent> contains text 'Node One Content Here! 12354394' (539ms)
✔ Testing if element <#searchResults div.searchResult #nodeContent> contains text 'Node One Content Here! 12354394' (28ms)
✖ Testing if element <#searchResults div.searchResult #nodeContent> is not present in 5000ms - expected "is not present" but got: "present" (5188ms)
at DeleteNode (file:///Users/norsegaud/project-flipflop/test/e2e/helpers.js:47:17)
at DescribeInstance.<anonymous> (file:///Users/norsegaud/project-flipflop/test/e2e/specs/v2.js:65:5)
FAILED: 1 assertions failed and 4 passed (7.138s)
───────────────────────────────────────────────────────────────────────────────────────────────────
TEST FAILURE (9.525s):
- 1 assertions failed; 4 passed
✖ 1) v2
– delete node from search and ensure it disappears (focused & from search) (7.138s)
Testing if element <#searchResults div.searchResult #nodeContent> is not present in 5000ms - expected "is not present" but got: "present" (5188ms)
at DeleteNode (file:///Users/norsegaud/project-flipflop/test/e2e/helpers.js:47:17)
at DescribeInstance.<anonymous> (file:///Users/norsegaud/project-flipflop/test/e2e/specs/v2.js:65:5)
After this fails, it closes chrome. I was on the latest 1.X version and this feature was working before I upgraded.
Describe the bug
After this fails, it closes chrome. I was on the latest 1.X version and this feature was working before I upgraded.
Your Environment