diff --git a/test/index.html b/test/index.html
index 072439887..88b7ff2ea 100644
--- a/test/index.html
+++ b/test/index.html
@@ -55,6 +55,9 @@
+
+
+
@@ -152,6 +155,10 @@
+
+
+
+
diff --git a/test/spec/ui/confirm.js b/test/spec/ui/confirm.js
new file mode 100644
index 000000000..a9380e1cc
--- /dev/null
+++ b/test/spec/ui/confirm.js
@@ -0,0 +1,11 @@
+describe("iD.ui.confirm", function () {
+ it('can be instantiated', function () {
+ var confirm = iD.ui.confirm();
+ expect(confirm).to.be.ok;
+ });
+ it('can be dismissed', function () {
+ var confirm = iD.ui.confirm();
+ happen.click(confirm.select('button').node());
+ expect(confirm.node().parentNode).to.be.null;
+ });
+});
diff --git a/test/spec/ui/flash.js b/test/spec/ui/flash.js
new file mode 100644
index 000000000..0426d1734
--- /dev/null
+++ b/test/spec/ui/flash.js
@@ -0,0 +1,13 @@
+describe("iD.ui.flash", function () {
+ it('can be instantiated', function () {
+ var flash = iD.ui.flash();
+ expect(flash).to.be.ok;
+ });
+ it('leaves after 1000 ms', function (done) {
+ var flash = iD.ui.flash();
+ window.setTimeout(function() {
+ expect(flash.node().parentNode).to.be.null;
+ done();
+ }, 1200);
+ });
+});
diff --git a/test/spec/ui/modal.js b/test/spec/ui/modal.js
new file mode 100644
index 000000000..32a42878a
--- /dev/null
+++ b/test/spec/ui/modal.js
@@ -0,0 +1,8 @@
+describe("iD.ui.modal", function () {
+ it('can be instantiated', function () {
+ var modal = iD.ui.modal()
+ .select('.content')
+ .text('foo');
+ expect(modal).to.be.ok;
+ });
+});