Skip to content

Commit

Permalink
DYN-5816 Displaying the proper info according to the language (#32)
Browse files Browse the repository at this point in the history
* Dealing with the initial info to display apart of the language

* Set the default title

* Update version
  • Loading branch information
jesusalvino authored Sep 21, 2023
1 parent a475887 commit a8880e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dynamods/splash-screen",
"version": "1.0.7",
"version": "1.0.8",
"description": "Splash Screen maintained by Dynamo Team@Autodesk",
"author": "Autodesk Inc.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Dynamic extends React.Component {
barSize: '0%',
dynamoVersion: '',
loadDescription: '',
loadingTime: 'Loading time: ',
loadingTime: '',
};

//This is a reference to the DOM of the project that will be called in Dynamo to fill the loading properties
Expand Down
4 changes: 2 additions & 2 deletions src/Static.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Static extends React.Component {

<Row className='mt-3'>
<button id='btnSignIn' className='primaryButton' onClick={this.signIn} tabIndex={2}>
{this.state.signInTitle}
{this.props.signInTitle}
</button>
</Row>

Expand Down Expand Up @@ -81,7 +81,7 @@ class Static extends React.Component {
alt=''
hidden={this.state.importStatus !== importStatusEnum.success}></img>
<div className='importSettingsText'>
<span>{this.state.importSettingsTitle}</span>
<span>{this.props.importSettingsTitle}</span>
</div>
</div>
</label>
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('SplashScreen', () => {
await expect(progressBarIndicator).toBeVisible;

const loadingTimeFooter = page.locator('.loadingTimeFooter');
await expect(loadingTimeFooter).toHaveText('Loading time:');
await expect(loadingTimeFooter).toHaveText('');
});

});

0 comments on commit a8880e1

Please sign in to comment.