ui
ui copied to clipboard
File watcher does not reload page objects code
What are you trying to achieve?
I want the code of page objects and fragments to be automatically refreshed after any changes are made to these files.
What do you get instead?
Watcher sees changes in the files listed in include in codecept.conf.js and the frontend notifies me about it via socket. But the files listed in include are not reloaded, only the test files are reloaded.
And I don't refer to the visual part that is displayed in the browser, it's not so important, I mean that when I run the test again, my PageObject is not updated.
Environment info
codeceptVersion: "3.6.2"
nodeInfo: 22.2.0
osInfo: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
cpuInfo: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
chromeInfo: Not Found
edgeInfo: "N/A"
firefoxInfo: undefined
safariInfo: N/A
helpers: {
"Puppeteer": {
"url": "http://host.docker.internal:8084",
"show": false,
"windowSize": "1200x900",
"restart": false,
"waitForNavigation": "domcontentloaded",
"chrome": {
"args": [
"--no-sandbox"
]
}
},
"Expect": {}
}
plugins: {
"screenshotOnFail": {
"enabled": true
},
"keepBrowserOpened": {
"require": "./plugins/keepBrowserOpened",
"enabled": true
},
"autoLogin": {
"enabled": true,
"inject": "login",
"users": {
"owner": {}
}
}
}
@codeceptjs/ui verison is 1.2.0
When I click "Run" after this message appears, the old code is used. Reloading the page helps.