From b5b099d37265f70a7d048be9fc70aba2602d6fc4 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 25 Aug 2015 17:34:26 -0400 Subject: [PATCH] FIX: Remove broken test, add descriptions --- .../acceptance/hamburger-menu-test.js.es6 | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/test/javascripts/acceptance/hamburger-menu-test.js.es6 b/test/javascripts/acceptance/hamburger-menu-test.js.es6 index 0dc9d2ca32b..2fad102fb88 100644 --- a/test/javascripts/acceptance/hamburger-menu-test.js.es6 +++ b/test/javascripts/acceptance/hamburger-menu-test.js.es6 @@ -23,17 +23,16 @@ test("Menu Items", (assert) => { visit("/"); click("#toggle-hamburger-menu"); andThen(() => { - assert.ok(!exists("#hamburger-menu .admin-link")); - assert.ok(!exists("#hamburger-menu .flagged-posts-link")); + assert.ok(!exists("#hamburger-menu .admin-link"), 'does not have admin link'); + assert.ok(!exists("#hamburger-menu .flagged-posts-link"), 'does not have flagged posts link'); - assert.ok(exists("#hamburger-menu .latest-topics-link")); - assert.ok(exists("#hamburger-menu .badge-link")); - assert.ok(exists("#hamburger-menu .user-directory-link")); - assert.ok(exists("#hamburger-menu .keyboard-shortcuts-link")); - assert.ok(exists("#hamburger-menu .faq-link")); - assert.ok(exists("#hamburger-menu .about-link")); - assert.ok(exists("#hamburger-menu .categories-link")); + assert.ok(exists("#hamburger-menu .latest-topics-link"), 'last link to latest'); + assert.ok(exists("#hamburger-menu .badge-link"), 'has link to badges'); + assert.ok(exists("#hamburger-menu .user-directory-link"), 'has user directory link'); + assert.ok(exists("#hamburger-menu .faq-link"), 'has faq link'); + assert.ok(exists("#hamburger-menu .about-link"), 'has about link'); + assert.ok(exists("#hamburger-menu .categories-link"), 'has categories link'); - assert.ok(exists('#hamburger-menu .category-link')); + assert.ok(exists('#hamburger-menu .category-link'), 'has at least one category'); }); });