Bug 973450 - [settings] refactor Device information panel with AMD patte...

...rn
make sure  `factoryReset._elements.resetDialog.hidden = true` at first before asserting.