Skip to content

Commit 5f51211

Browse files
committed
test(flagd): rework e2e tests to new format
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 2087c2b commit 5f51211

File tree

8 files changed

+8
-473
lines changed

8 files changed

+8
-473
lines changed

libs/providers/flagd/src/e2e/step-definitions/configSteps.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export const configSteps: Steps = (state: State) => {
3232
(name: string, type: string, value: string) => {
3333
const expected = mapValueToType(value, type);
3434
const propertyName = mapName(name);
35-
expect(state.config).toHaveProperty(propertyName);
3635
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
3736
// @ts-ignore
3837
const configElement = state.config[propertyName];

libs/providers/flagd/src/e2e/step-definitions/eventSteps.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export const eventSteps: Steps =
3232
});
3333

3434
then(/^the (.*) event handler should have been executed$/, async (type: string) => {
35-
await waitFor(() => expect(state.events.find((value) => value.type == type)).toBeDefined(), { timeout: 10000 });
35+
await waitFor(() => expect(state.events.find((value) => value.type == type)).toBeDefined(), { timeout: 20000 });
3636
expect(state.events.find((value) => value.type == type)).toBeDefined();
3737
state.events = state.events.filter((a) => a.type !== type);
38-
console.error('here bin cih');
3938
});
4039

4140
then(/^the (.*) event handler should have been executed within (\d+)ms$/, async (type: string, ms: number) => {

0 commit comments

Comments
 (0)