From 6fc141a8d13e1268536a24eb660d32c2024ac15b Mon Sep 17 00:00:00 2001 From: Katja Potensky <785327-hesxenon@users.noreply.gitlab.com> Date: Fri, 13 Dec 2024 13:14:17 +0100 Subject: [PATCH] write text with proposed syntax --- test/commands/toggle.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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);