fix: 🐛 fix bug with the apiClientTestAfter noop fixture hanging and update e2e label username, password locators with required text (#2994)

* fix: 🐛 fix bug with the e2e test fixture hanging

* test: 💍 update cred store label locators with exact match

* test: 💍 update createTargetWithAddressAndAlias with target type
This commit is contained in:
hashicc authored and GitHub committed 2025-09-10 10:14:55 -04:00
1 parent dd37fa4270
commit bd67756cda
4 files changed
+43 -8

No files matched your search

+6 -4
View File
@@ -244,11 +244,13 @@ class BoundaryApi {
export const boundaryApiClientTest = base.extend<{
apiClient: BoundaryApi;
controllerAddr?: string;
apiClientTestAfter?: () => {};
apiClientTestAfter?: () => void;
}>({
// this is a noop so that the `apiClient` fixture doesn't fail for other tests,
// the `apiClientTestAfter` fixture is used in api-client tests to provide a hook for assertions
apiClientTestAfter: () => {},
apiClientTestAfter: async ({}, use) => {
// this is a noop so that the `apiClient` fixture doesn't fail for other tests,
// the `apiClientTestAfter` fixture is used in api-client tests to provide a hook for assertions
await use(() => {});
},
apiClient: async ({ controllerAddr, apiClientTestAfter }, use) => {
// by destructuring the `apiClientTestAfter` fixture it creates a dependency on that fixture which
// controls the setup/teardown order and allows `api-client.spec.js` to test the teardown cleanup