If your test-statistic is of the form $$Z^{*}=\frac{\hat{p}_1-\hat{p}_2 }{\sqrt{p^{*}(1-p^{*})(\frac{1}{n_1}+\frac{1}{n_2})}}$$ where, $p^{*}=\frac{x_1+x_2}{n_1+n_2}$
Now if $\hat{p}_1$ is significantly greater than $\hat{p}_2$, your test statistic falls in the upper tail region of the Normal distribution.
Please go through this link for further reading.