Add spec to test confirmation dialog invocation