The line of code above (... .trigger() ...) sets the CSS setting immediately? Maybe there should be a waitsFor() block which tests for the CSS property and then an expect()?