Skip to content
Snippets Groups Projects
Unverified Commit cab0bc77 authored by Linda's avatar Linda Committed by GitHub
Browse files

Merge pull request #3255 from LiFaytheGoblin/2981/no-welcome-modal

welcome modal doesn't appear when a project is loaded directly
parents 673745c2 4c75dcac
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ const HashParserHOC = function (WrappedComponent) { ...@@ -33,6 +33,7 @@ const HashParserHOC = function (WrappedComponent) {
render () { render () {
return ( return (
<WrappedComponent <WrappedComponent
hideIntro={this.state.projectId && this.state.projectId !== 0}
projectId={this.state.projectId} projectId={this.state.projectId}
{...this.props} {...this.props}
/> />
......
...@@ -71,7 +71,6 @@ describe('Loading scratch gui', () => { ...@@ -71,7 +71,6 @@ describe('Loading scratch gui', () => {
const projectId = '96708228'; const projectId = '96708228';
await loadUri(`${uri}#${projectId}`); await loadUri(`${uri}#${projectId}`);
await clickXpath('//button[@title="Try It"]');
await new Promise(resolve => setTimeout(resolve, 3000)); await new Promise(resolve => setTimeout(resolve, 3000));
await clickXpath('//img[@title="Go"]'); await clickXpath('//img[@title="Go"]');
await new Promise(resolve => setTimeout(resolve, 2000)); await new Promise(resolve => setTimeout(resolve, 2000));
...@@ -93,7 +92,6 @@ describe('Loading scratch gui', () => { ...@@ -93,7 +92,6 @@ describe('Loading scratch gui', () => {
.setSize(1920, 1080); .setSize(1920, 1080);
const projectId = '96708228'; const projectId = '96708228';
await loadUri(`${uri}#${projectId}`); await loadUri(`${uri}#${projectId}`);
await clickXpath('//button[@title="Try It"]');
await new Promise(resolve => setTimeout(resolve, 2000)); await new Promise(resolve => setTimeout(resolve, 2000));
await clickXpath('//img[@title="Full Screen Control"]'); await clickXpath('//img[@title="Full Screen Control"]');
await clickXpath('//img[@title="Go"]'); await clickXpath('//img[@title="Go"]');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment