-
diff --git a/tests/integration/components/o-s-s/togglable-section-test.ts b/tests/integration/components/o-s-s/togglable-section-test.ts
index e7a44943b..140c69e27 100644
--- a/tests/integration/components/o-s-s/togglable-section-test.ts
+++ b/tests/integration/components/o-s-s/togglable-section-test.ts
@@ -176,6 +176,34 @@ module('Integration | Component | o-s-s/togglable-section', function (hooks) {
});
});
+ module('@Switchable behaviour', () => {
+ test('If @switchable is not passed, the toggle is rendered', async function (assert) {
+ await render(
+ hbs`
`
+ );
+
+ assert.dom('.upf-toggle').exists();
+ });
+
+ test('If @switchable is false, the toggle is not rendered', async function (assert) {
+ await render(
+ hbs`
`
+ );
+
+ assert.dom('.upf-toggle').doesNotExist();
+ });
+
+ test('If @switchable is false, clicking on the header does not call @onChange', async function (assert) {
+ this.onChange = sinon.stub();
+ await render(
+ hbs`
`
+ );
+
+ await click('.inner-header');
+ assert.true(this.onChange.notCalled);
+ });
+ });
+
test('When `header-actions` named block is passed, the content is rendered in the header', async function (assert) {
await render(
hbs`