The gym leader will not fight you at first — you have to go find her.
Walk into the Contest Hall and look for the woman with the purple hair and the spectacular silhouette. Speak to her, and she heads back to the gym. Follow her over and the battle is on.
It is a small detour, but it is the only thing gating the match, so do not waste time trying the gym door repeatedly.