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

[afterEachHook] Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #2026

Closed
Vorobeyko opened this issue Nov 14, 2019 · 1 comment
Labels
bug

Comments

@Vorobeyko
Copy link
Member

@Vorobeyko Vorobeyko commented Nov 14, 2019

What are you trying to achieve?

I execute I.amOnPage
My app broken and return net::ERR_CONNECTION_RESET at https://localhost:3000/storybook//iframe.html?id=desktop-desktopvideo--default

What do you get instead?

I get error - Failed to read the 'localStorage' property from 'Window' which tells me nothing

[2.parallel:chunk2:default]   ✖ Kind: @DESKTOP/desktopVideo; Story: @default; Width: @1024 in 3455ms

[2.parallel:chunk2:default]   ✖ "after each" hook: finalize codeceptjs for "Kind: @DESKTOP/desktopVideo; Story: @default; Width: @1024" in 64ms
[2.parallel:chunk2:default] Error: Evaluation failed: DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at __puppeteer_evaluation_script__:1:1

[2.parallel:chunk2:default] -- FAILURES:

  1) DESKTOP/1024/
       Kind: @DESKTOP/desktopVideo; Story: @default; Width: @1024:
     net::ERR_CONNECTION_RESET at https://localhost:3000/storybook//iframe.html?id=desktop-desktopvideo--default
  
  Scenario Steps:
  
  - I.amOnPageByType("/iframe.html?id=desktop-desktopvideo--default", "expected") at Test.Scenario (.tmpTestsPath/DESKTOP/1024.vtest.js:43:15)

What i want?

I want get correct error msg like https://localhost:3000/storybook//iframe.html?id=desktop-desktopvideo--default but not error witj localStorage.

Details

  • CodeceptJS version:
  • NodeJS Version:
  • Operating System:
  • Protractor || WebDriverIO || Nightmare version (if related)
  • Configuration file:
@Vorobeyko Vorobeyko added the bug label Nov 14, 2019
Vorobeyko added a commit to TinkoffCreditSystems/CodeceptJS that referenced this issue Nov 19, 2019
Vorobeyko added a commit to TinkoffCreditSystems/CodeceptJS that referenced this issue Nov 22, 2019
Vorobeyko added a commit to TinkoffCreditSystems/CodeceptJS that referenced this issue Nov 22, 2019
@Vorobeyko

This comment has been minimized.

Copy link
Member Author

@Vorobeyko Vorobeyko commented Nov 23, 2019

Done.

@Vorobeyko Vorobeyko closed this Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.