Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File watcher does not reload page objects code #274

Open
netsnatch opened this issue Jun 14, 2024 · 0 comments
Open

File watcher does not reload page objects code #274

netsnatch opened this issue Jun 14, 2024 · 0 comments

Comments

@netsnatch
Copy link

netsnatch commented Jun 14, 2024

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

qwe

When I click "Run" after this message appears, the old code is used. Reloading the page helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant