It sucks but these are tests. What was your reaction? She certainly was looking for one. If you are reading her signs and taking her out for regular potty times ( which I have no doubt you are totally doing,) then she is testing you ( and maybe testing her possible dominance) to see whether or not she can get a reaction. If she got a reaction in the past even a negative one, she might be looking for attention. But I know you give her tons of attention so that is probably not the whole story. Some dogs don't give up as easily - each has a unique personality. With Miss T I would not look at her, not react, turn my back and walk away into another room with no communication. One time she stood right in front of me and did a defiant little pee on the floor. (another time it was on the bed when we were watching TV) As soon as she was out of sight of the pee, ( in another room or outside) I would quietly clean it up with enzyme stuff to make sure there was no residual odour for her to go back to. Then when she pottied outside she got major praise and major high value ie: her most favourite treat, little chunks of dried beef. She tested me several times over a few months then all of a sudden it stopped. Hang in there. These little fur babies are complicated but we love them anyway. Of course I had a few good cries feeling like " loser bulldog mama" in those days.