Skip to content

Commit cb2ef6a

Browse files
committed
don't hard code test realm
1 parent 437d2c7 commit cb2ef6a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/host/tests/integration/components/card-basics-test.gts

+4-7
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,13 @@ module('Integration | card-basics', function (hooks) {
644644
};
645645
}
646646

647-
let ref = { module: `http://localhost:4202/test/person`, name: 'Person' };
647+
let ref = { module: `${testRealmURL}person`, name: 'Person' };
648648
let driver = new DriverCard({ ref });
649649

650650
await renderCard(loader, driver, 'embedded');
651651
assert
652652
.dom('[data-test-ref]')
653-
.containsText(`Module: http://localhost:4202/test/person Name: Person`);
653+
.containsText(`Module: ${testRealmURL}person Name: Person`);
654654

655655
// is this worth an assertion? or is it just obvious?
656656
assert.strictEqual(
@@ -670,17 +670,14 @@ module('Integration | card-basics', function (hooks) {
670670
};
671671
}
672672

673-
let ref = { module: `http://localhost:4202/test/person`, name: 'Person' };
673+
let ref = { module: `${testRealmURL}person`, name: 'Person' };
674674
let driver = new DriverCard({ ref });
675675

676676
await renderCard(loader, driver, 'edit');
677677

678678
assert
679679
.dom('[data-test-ref] input')
680-
.hasValue(
681-
`http://localhost:4202/test/person/Person`,
682-
'input field is correct',
683-
);
680+
.hasValue(`${testRealmURL}person/Person`, 'input field is correct');
684681

685682
await fillIn('[data-test-ref] input', '@cardstack');
686683
assert

0 commit comments

Comments
 (0)