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

Using of tryTo breaks ui runner #123

Closed
Xotabu4 opened this issue Apr 13, 2021 · 2 comments
Closed

Using of tryTo breaks ui runner #123

Xotabu4 opened this issue Apr 13, 2021 · 2 comments

Comments

@Xotabu4
Copy link

Xotabu4 commented Apr 13, 2021

What are you trying to achieve?

Using of tryTo breaks ui runner

What do you get instead?

Provide console output if related.

     Cannot set property 'id' of undefined
      at RealtimeReporterHelper._emitMetaStepChangedIfNecessary (node_modules/@codeceptjs/ui/lib/codeceptjs/realtime-reporter.helper.js:266:29)
      at recorder.add (node_modules/@codeceptjs/ui/lib/codeceptjs/realtime-reporter.helper.js:135:14)

Provide test source code if related:

    const isSubmitSuccessful = await tryTo(() =>
      this.waitForElement('button.progress-loading.state-success', 2)
    );
    if (!isSubmitSuccessful) {
      this.click(signUpId('submit'));
    }

Environment info

  • Copy and paste your environment info by using npx codeceptjs info
 Environment information:-

codeceptVersion:  "3.0.6"
nodeInfo:  10.13.0
osInfo:  macOS 10.15.7
cpuInfo:  (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
chromeInfo:  89.0.4389.114
edgeInfo:  Not Found
firefoxInfo:  Not Found
safariInfo:  14.0.3
helpers:  {
 "Playwright": {
  "url": "http://localhost:3000/",
  "browser": "chromium",
  "show": true,
  "chromium": {
   "headless": false,
   "defaultViewport": null,
   "args": [
    "--use-fake-device-for-media-stream",
    "--use-fake-ui-for-media-stream"
   ]
  }
 }
}
plugins:  {
 "screenshotOnFail": {
  "enabled": true
 },
 "retryFailedStep": {
  "enabled": true,
  "retries": 2
 },
 "autoDelay": {
  "enabled": true
 },
 "tryTo": {
  "enabled": true
 },
 "retry": {
  "enabled": true,
  "require": "./utils/plugins/retry",
  "retries": 2
 }
}
@Xotabu4
Copy link
Author

Xotabu4 commented Apr 26, 2021

This might be related, getting same error on calling moveTo command

image

@BorisOsipov
Copy link

@Xotabu4 probably fixed in #119

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

3 participants