summaryrefslogtreecommitdiff
path: root/web/test/new-task-button.test.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'web/test/new-task-button.test.mjs')
-rw-r--r--web/test/new-task-button.test.mjs24
1 files changed, 0 insertions, 24 deletions
diff --git a/web/test/new-task-button.test.mjs b/web/test/new-task-button.test.mjs
deleted file mode 100644
index 45a3548..0000000
--- a/web/test/new-task-button.test.mjs
+++ /dev/null
@@ -1,24 +0,0 @@
-// new-task-button.test.mjs — visibility contract for the New Task button
-//
-// The New Task button lives in the global header and must be visible on all tabs.
-// Run with: node --test web/test/new-task-button.test.mjs
-
-import { describe, it } from 'node:test';
-import assert from 'node:assert/strict';
-import { newTaskButtonShouldShowOnTab } from '../app.js';
-
-const ALL_TABS = ['tasks', 'active', 'running', 'stats'];
-
-describe('new task button visibility', () => {
- for (const tab of ALL_TABS) {
- it(`is visible on "${tab}" tab`, () => {
- assert.equal(newTaskButtonShouldShowOnTab(tab), true, `expected button to be visible on tab "${tab}"`);
- });
- }
-
- it('is visible on any unknown future tab', () => {
- assert.equal(newTaskButtonShouldShowOnTab('help'), true);
- assert.equal(newTaskButtonShouldShowOnTab('templates'), true);
- assert.equal(newTaskButtonShouldShowOnTab(''), true);
- });
-});