diff --git a/test/commands/toggle.js b/test/commands/toggle.js index 2000df361..fafc30dac 100644 --- a/test/commands/toggle.js +++ b/test/commands/toggle.js @@ -91,6 +91,15 @@ describe("the toggle command", function () { div.classList.contains("bar").should.equal(false); }); + it("can toggle between two attribute values", function () { + var div = make("
"); + div.getAttribute("aria-selected").should.equal(null); + div.click(); + div.getAttribute("aria-selected").should.equal("true"); + div.click(); + div.getAttribute("aria-selected").should.equal("false"); + }); + it("can toggle multiple class refs", function () { var div = make("
"); div.classList.contains("foo").should.equal(false);