-
Notifications
You must be signed in to change notification settings - Fork 673
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
Can't test React components with Storybook #1147
Comments
@mkubrycz I'm researching it now |
Hi @mkubrycz, Please, try to skip js errors.. Let me know if it helps. |
Hi @churkin, so I've tried and skipping js errors results with error:
my browser displays just blank page although url is correct. |
@mkubrycz Unfortunately I need example for debugging. Could you share problem link? |
@churkin testcode: import { Selector } from 'testcafe';
const helloButton = Selector("button").withText("Hello Button");
fixture `Storybook`
.page `http://localhost:9001/`;
test('Storybook example', async t => {
await t
.switchToIframe("#storybook-preview-iframe")
.click(helloButton);
}); I've created github repo with this problem, just: $ npm install
$ npm run storybook test is under |
I ran It looks like you don't add a file with page model definitions. Please, provide this file. |
@miherlosev import { Selector } from 'testcafe';
const helloButton = Selector("button").withText("Hello Button");
fixture `Storybook`
.page `http://localhost:9001/`;
test('Storybook example', async t => {
await t
.switchToIframe("#storybook-preview-iframe")
.click(helloButton);
}); from the start. |
Thank you @miherlosev and @churkin ! new version indeed fixed my problem. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
Are you requesting a feature or reporting a bug?
bug
What is the current behavior?
In our project we use React Storybook and we can't run tests for it with testcafe. When trying to run tests against storybook's server we keep getting this error:
What is the expected behavior?
for tests to run and pass
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL: local storybook server
Test code
Specify your
The text was updated successfully, but these errors were encountered: