From 85cd626f4e2af28909df7515d02f29deeabf561b Mon Sep 17 00:00:00 2001 From: David Joy Date: Tue, 6 Apr 2021 10:18:09 -0400 Subject: [PATCH] test: adding stub test files for FeaturesTable, AppList, and AppCard --- .../discussions/AppCard.test.jsx | 17 +++++++++++++++++ .../discussions/AppList.test.jsx | 18 +++++++++++++++++- .../discussions/FeaturesTable.test.jsx | 13 +++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/pages-and-resources/discussions/AppCard.test.jsx create mode 100644 src/pages-and-resources/discussions/FeaturesTable.test.jsx diff --git a/src/pages-and-resources/discussions/AppCard.test.jsx b/src/pages-and-resources/discussions/AppCard.test.jsx new file mode 100644 index 000000000..b523441c0 --- /dev/null +++ b/src/pages-and-resources/discussions/AppCard.test.jsx @@ -0,0 +1,17 @@ +describe('AppCard', () => { + test('checkbox input is checked when AppCard is selected', () => { + + }); + + test('title, subtitle, and text from app are displayed', () => { + + }); + + test('full support message shown when hasFullSupport is true', () => { + + }); + + test('partial support message shown when hasFullSupport is false', () => { + + }); +}); diff --git a/src/pages-and-resources/discussions/AppList.test.jsx b/src/pages-and-resources/discussions/AppList.test.jsx index ed9dc000a..4a21ffcec 100644 --- a/src/pages-and-resources/discussions/AppList.test.jsx +++ b/src/pages-and-resources/discussions/AppList.test.jsx @@ -1,5 +1,21 @@ describe('AppList', () => { - it('will pass because it is an example', () => { + test('displays a message when there are no apps available', () => { + + }); + + test('display a card for each available app', () => { + + }); + + test('displays the FeaturesTable at desktop sizes', () => { + + }); + + test('hides the FeaturesTable at mobile sizes', () => { + + }); + + test('onSelectApp is called when an app is clicked', () => { }); }); diff --git a/src/pages-and-resources/discussions/FeaturesTable.test.jsx b/src/pages-and-resources/discussions/FeaturesTable.test.jsx new file mode 100644 index 000000000..11ebdb43a --- /dev/null +++ b/src/pages-and-resources/discussions/FeaturesTable.test.jsx @@ -0,0 +1,13 @@ +describe('FeaturesTable', () => { + test('displays a row for each available feature', () => { + + }); + + test('apps columns receive a check for each feature they support', () => { + + }); + + test('apps columns receive a dash for each unsupported feature', () => { + + }); +});