I am learning about some non-parametric tests. In my textbook (the one that my teachers drafted), it is said that "The Wilcoxon,Mann-Whitney test does not allow testing the two-sided alternative hypothesis". But it is weird to me because in R, we can see the option "alternative=two.sided" in the command wilcox.test. And I also see many sources on the Internet that show how to build this test with two-tailed. The first two sources that I found:
https://www.youtube.com/watch?v=f92ipFw8ZgI
https://www.youtube.com/watch?v=BT1FKd1Qzjw
But these two sources used different statistic. One took the minimum rank-sum of the samples and the other took the maximum rank-sum of the samples.
So does the MWW allow testing the two-sided alternative hypothesis? And if yes, what is the statistic for this test?
Edit:
In my textbook, the hypothesis are: $H_0: F=G$ against $H_1: F\ge G$, where $F,G$ are the cdfs of two samples $X,Y$ respectively.
The statistic is defined by: $MW_{X,Y}=\sum_i \sum_j 1_{Y_j>X_i}$
I have just noticed that in the $H_1$, there is also the equality symbol. Is it weird or it is a typo of my textbook?