vault/ui/tests/integration/components/transform-edit-base-test.js
Vault Automation 7c746abafd
[UI] Ember Data Migration - Transform Templates views | VAULT-45707 (#15188) (#15196)
* VAULT-45707 - migrates transform templates views

* updated fields to snake_case

* updated selectors in test to use GENERAL selector

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-06-04 18:37:21 +00:00

31 lines
860 B
JavaScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'vault/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | transform-edit-base', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<TransformEditBase />`);
assert.dom(this.element).hasText('');
// Template block usage:
await render(hbs`
<TransformEditBase>
template block text
</TransformEditBase>
`);
assert.dom(this.element).hasText('template block text');
});
});