Bug 1032070 - [Settings] add done feature in onBeforsShow()

If the assertions are wrapped in a promise, we should also use `done` to ensure the assertions are always checked.