Skip to content

Commit fdd9626

Browse files
authoredApr 27, 2023
feat: Button Base Demo test (#126)
* feat: Button Base Demo test This test passes locally, however I am running into a glint error and I am not sure how to import. * test: Button page, replace integration test with acceptance * docs, test: adding a test for console errors - installed sinon, sinon-chai and chai for this * test: Adding a test for the button page * removed: sinon, chai, sinon-chai and related @types Lint revealed unused imports, and I realized that I wasn't using sinon or chai anymore. These have been removed.
1 parent e067f76 commit fdd9626

File tree

4 files changed

+1054
-312
lines changed

4 files changed

+1054
-312
lines changed
 

‎docs-app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"@types/rsvp": "^4.0.4",
7676
"autoprefixer": "^10.4.12",
7777
"broccoli-asset-rev": "^3.0.0",
78+
"chai": "^4.3.7",
7879
"concurrently": "^8.0.0",
7980
"cssnano": "^6.0.0",
8081
"ember-auto-import": "^2.4.2",
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* eslint-disable no-undef -- Until https://github.com/ember-cli/eslint-plugin-ember/issues/1747 is resolved... */
2+
/* eslint-disable simple-import-sort/imports,padding-line-between-statements,decorator-position/decorator-position -- Can't fix these manually, without --fix working in .gts */
3+
import { module, test } from 'qunit';
4+
import { visit, currentURL } from '@ember/test-helpers';
5+
import { setupApplicationTest } from 'ember-qunit';
6+
7+
module('Acceptance | Button', function (hooks) {
8+
setupApplicationTest(hooks);
9+
10+
test('visiting the button page', async function (assert) {
11+
12+
await visit('/docs/components/button')
13+
assert.strictEqual(currentURL(), '/docs/components/button');
14+
});
15+
16+
});
File renamed without changes.

0 commit comments

Comments
 (0)