Well, even in Wikipedia, the definition is quoted as being different for CS vs the unary operation you describe.
"In computer science, the term idempotent is used more comprehensively to describe an operation that will produce the same results if executed once or multiple times."
Which is more that f(x) == f(x) == f(x) for the state affected by f.