Fix issue ActionSheet test case on Declarative mode.