From 86cbb1ca4c6e491b1c683353043925a9795d91d4 Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Thu, 8 Feb 2024 10:37:21 -0300 Subject: [PATCH] fix: tests --- src/app.jsx | 8 ++++---- test/check-application | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index a215dd4..4290c30 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -33,8 +33,8 @@ export class Application extends React.Component { componentDidMount() { const storageHidedCards = localStorage.getItem('hidedCards'); const hidedCards = storageHidedCards != null && storageHidedCards !== '' ? storageHidedCards.split(',') : []; - const fahrenheitChecked = Boolean(localStorage.getItem('fahrenheitChecked')) || false - const isExpanded = JSON.parse(localStorage.getItem('isExpanded')) || {} + const fahrenheitChecked = Boolean(localStorage.getItem('fahrenheitChecked')) || false; + const isExpanded = JSON.parse(localStorage.getItem('isExpanded')) || {}; const intervalId = setInterval(() => { if (!this.state.isShowBtnInstall && !this.state.isError) this.loadSensors(); @@ -172,7 +172,7 @@ export class Application extends React.Component { } }) .fail((e) => { - this.getLmSensorsInstallCmd(index + 1); + this.getLmSensorsInstallCmd(index + 1); }); }; @@ -260,7 +260,7 @@ export class Application extends React.Component { {alert != null ? {alert.msg} : <>} {isShowBtnInstall ? : <>} {hidedCards.length > 0 ? : <>} - + {sensors !== null ? Object.entries(sensors).map((key, keyIndex) => { if (hidedCards.includes(key[0])) { diff --git a/test/check-application b/test/check-application index 804459b..0101308 100755 --- a/test/check-application +++ b/test/check-application @@ -19,7 +19,7 @@ class TestApplication(testlib.MachineCase): self.login_and_go("/sensors") # verify expected heading - b.wait_text(".pf-v5-c-card__title", "Sensors") + b.wait_text(".pf-v5-c-card__title-text", "Sensors") if __name__ == '__main__':