It looks like the Ingenuity helicopter is not yet deployed.
NASA's Ingenuity Mars helicopter clears tests, inches closer to historic first flight in April
So how did the Ingenuity helicopter clear tests even without being deployed on Mars?
Space Exploration Stack Exchange is a question and answer site for spacecraft operators, scientists, engineers, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIt looks like the Ingenuity helicopter is not yet deployed.
NASA's Ingenuity Mars helicopter clears tests, inches closer to historic first flight in April
So how did the Ingenuity helicopter clear tests even without being deployed on Mars?
As of today, the debris shield has been dropped. The "tests" discussed in the article are electrical, computer, and sensor tests. Nothing mechanical (other than dropping the shield) has been done yet; the helicopter is still attached to the bottom of the rover.
The official NASA article dated today explains that the rover is now on its way to a safe flight zone to drop the helicopter:
Before Ingenuity takes its first flight on Mars, it must be squarely in the middle of its airfield – a 33-by-33-foot (10-by-10-meter) patch of Martian real estate chosen for its flatness and lack of obstructions. Once the helicopter and rover teams confirm that Perseverance is situated exactly where they want it to be inside the airfield, the elaborate process to deploy the helicopter on the surface of Mars begins.
See this answer for more details on the flight zone.
It then takes six sols (if things go right) to drop the helicopter (described in detail in the article). The NASA article also states that the first flight will be "no earlier than April 8", and that it will take 3 sols after the first flight just to download all of the flight data and images.
So be patient.
So How did ingenuity helicopter clear tests even without being deployed on Mars?
The linked article claims that Ingenuity has "cleared multiple system checks". By way of analogy, human pilots of aircraft on Earth perform or monitor all kinds of systems checks on the planes before the pilots even think of starting an aircraft's engines. Then they perform even more systems checks before they throttle up to take off.
Human pilots have the advantage of being right next to the aircraft. The remote operators of Perseverance and Ingenuity do not. They have to wait 20 minutes between the time a command is uploaded and the report of command reception is received on Earth. This 20 minute (or more) round trip light speed time means that devices sent to Mars operate slowly. Very, very slowly.
It will take about a week between passing the initial system checks and the initiation of deployment, and then it will take another week before the Ingenuity makes its first tiny hop. There are many reasons for that slowness. I've mentioned one, the long time it takes for a signal to go between Earth and Mars and back. Another key reason is that the deployment will inevitably involve several irreversible actions.
If some future Ingenuity systems check does indicate a potential problem, mission controllers on Earth might be able to delay Ingenuity operations until the problem is resolved. This remains a possibility until the point in time when key irreversible actions are taken. This in turn means that controllers on Earth will proceed slowly. Very, very slowly.
The question now asks how Ingenuity was able to "clear tests" before being deployed to Mars. Both previous answers have discussed some of the testing regimes, but neither addressed actual flight tests...which was actually the OP's original wording.
The Wikipedia article on Ingenuity says Ingenuity made test flights in a simulated Martian environment, but the citation for that assertion does not reference any flight testing. I wandered through the many other citations at the bottom of the Wikipedia article, and found this one from JPL, which reports on actual flying tests. The text is:
In late January 2019, all the pieces making up the flight model (actual vehicle going to the Red Planet) of NASA's Mars Helicopter were put to the test.
...
"Gearing up for that first flight on Mars, we have logged over 75 minutes of flying time with an engineering model, which was a close approximation of our helicopter," said MiMi Aung, project manager for the Mars Helicopter at NASA's Jet Propulsion Laboratory in Pasadena, California. "But this recent test of the flight model was the real deal. This is our helicopter bound for Mars. We needed to see that it worked as advertised."
While flying helicopters is commonplace here on Earth, flying hundreds of millions of miles (kilometers) away in the thin Martian atmosphere is something else entirely. And creating the right conditions for testing here on Earth presents its own set of challenges.
"The Martian atmosphere is only about one percent the density of Earth's," said Aung. "Our test flights could have similar atmospheric density here on Earth - if you put your airfield 100,000 feet (30,480 meters) up. So you can't go somewhere and find that. You have to make it."
Aung and her Mars Helicopter team did just that in JPL's Space Simulator, a 25-foot-wide (7.62-meter-wide) vacuum chamber. First, the team created a vacuum that sucks out all the nitrogen, oxygen and other gases from the air inside the mammoth cylinder. In their place the team injected carbon dioxide, the chief ingredient of Mars' atmosphere.
"Getting our helicopter into an extremely thin atmosphere is only part of the challenge," said Teddy Tzanetos, test conductor for the Mars Helicopter at JPL. "To truly simulate flying on Mars we have to take away two-thirds of Earth's gravity, because Mars' gravity is that much weaker."
The team accomplished this with a gravity offload system - a motorized lanyard attached to the top of the helicopter to provide an uninterrupted tug equivalent to two-thirds of Earth's gravity. While the team was understandably concerned with how the helicopter would fare on its first flight, they were equally concerned with how the gravity offload system would perform.
"The gravity offload system performed perfectly, just like our helicopter," said Tzanetos. "We only required a 2-inch (5-centimeter) hover to obtain all the data sets needed to confirm that our Mars helicopter flies autonomously as designed in a thin Mars-like atmosphere; there was no need to go higher. It was a heck of a first flight."
The Mars Helicopter's first flight was followed up by a second in the vacuum chamber the following day. Logging a grand total of one minute of flight time at an altitude of 2 inches (5 centimeters), more than 1,500 individual pieces of carbon fiber, flight-grade aluminum, silicon, copper, foil and foam have proven that they can work together as a cohesive unit.
Sounds like "flight testing" to me, or at least as close to "flight testing" as might be actually achievable here on Earth.