Consider a 3-dimensional Hilbert space spanned by the normalized eigenstates $|1\rangle,|2\rangle,|3\rangle$ of an operator $A$. Consider a normalized superposition, $|\psi\rangle=c_1|1\rangle+c_2|2\rangle+c_3|3\rangle$. If one measures the operator $A$, the possible final states are $|1\rangle,|2\rangle$ and $|3\rangle$ with probabilities $|c_1|^2,|c_2|^2$ and $|c_3|^2$ respectively.
Suppose we measure an operator $B$ that commute with $A$. Is it always true that the possible final states are again $|1\rangle,|2\rangle$ and $|3\rangle$ with probabilities $|c_1|^2,|c_2|^2$ and $|c_3|^2$ respectively?
What about the special case when $B=f(A)$ (say, $f(A)=A^2$) where $f(A)$ is some function of the operator $A$?