chore: 🤖 Migrate form.inut to Hds::TextInput::Field (#2151)

* chore: 🤖 Migrate `form.inut` to `Hds::TextInput::Field`

Migrate `form/create-worker-led` form to use `Hds:Text::InputField`
instead of `form.input`

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12477

* refactor: 💡 Added `optional` and `requred` arguments for fields

Added `optional` and `require` arguments for all needed fields.

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12477

* refactor: 💡 fix failing test

fix failing test

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12477
This commit is contained in:
Devon Anderson authored and GitHub committed 2024-02-28 13:02:02 -05:00
1 parent 060f995f94
commit c09efbae10
3 files changed
+104 -54

No files matched your search

@@ -53,18 +53,18 @@ module('Acceptance | workers | create', function (hooks) {
const featuresService = this.owner.lookup('service:features');
featuresService.enable('byow-pki-hcp-cluster-id');
await visit(newWorkerURL);
const labels = findAll('label.rose-form-label');
assert.dom(labels[0]).hasText('Boundary Cluster ID');
const labels = findAll('label.hds-form-label');
assert.dom(labels[0]).hasText('Boundary Cluster ID (Optional)');
assert.dom(labels[2]).doesNotIncludeText('Initial Upstreams');
});
test('initial upstreams input field is visible for `oss` binary', async function (assert) {
const featuresService = this.owner.lookup('service:features');
await visit(newWorkerURL);
const labels = findAll('label.rose-form-label');
const labels = findAll('label.hds-form-label');
assert.false(featuresService.isEnabled('byow-pki-hcp-cluster-id'));
assert.dom(labels[0]).doesNotIncludeText('Boundary Cluster ID');
assert.dom(labels[2]).hasText('Initial Upstreams');
assert.dom(labels[2]).hasText('Initial Upstreams (Optional)');
});
test('download and install step shows correct oss instructions', async function (assert) {