fix: tests

This commit is contained in:
Cristopfer Luis Viana da Silva 2024-02-08 10:37:21 -03:00
parent 6d762b41ad
commit 86cbb1ca4c
2 changed files with 5 additions and 5 deletions

View file

@ -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);
});
};

View file

@ -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__':