-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add ie11 to browser list for screener tests #14890
Conversation
This is exactly what my PR was... which will fail on some things. We need a way to opt in specific tests |
https://screener.io/v2/docs/include-exclude @dzearing Found something that could be useful, just wanted to make sure that ie11 was able to be added to the screener tests. Will update the PR with includeRules |
@tomi-msft sounds good! |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changes
Baseline commit: 3346b09e82b41f6b5b96fe1a94c8d122b3a4625b (build) |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1a07cb2:
|
@@ -14,6 +14,9 @@ storiesOf('Button Next', module) | |||
.addDecorator(story => ( | |||
<Screener | |||
steps={new Steps() | |||
.executeScript( | |||
'const script=document.createElement(\'script\');script.src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.1.0/ie11CustomProperties.min.js";document.head.appendChild(script);location.reload();', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location.reload();
You are reloading the page; the new page will not have the script after reloading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need to reload? the script will execute before we render the button. that way the button should have the styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, steps are executed after stories are rendered. so this will not work :) we need a way to inject and execute the script before the stories render
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://storybook.js.org/docs/react/configure/story-rendering#adding-to-head this might be what we want
@tomi-msft is it valid? As I remember we decided to not use a polyfill for IE11... Can you please check? |
This is resolved, ill close |
Pull request checklist
$ yarn change
Description of changes
(give an overview)
Focus areas to test
(optional)