Skip to content

chore(site): add tests for deprecate template flow #12685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

Closes #12505

@BrunoQuaresma BrunoQuaresma requested a review from a team March 20, 2024 13:18
@BrunoQuaresma BrunoQuaresma self-assigned this Mar 20, 2024
@BrunoQuaresma BrunoQuaresma requested review from code-asher and removed request for a team March 20, 2024 13:18
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

await deprecateTemplate(MockTemplate, deprecationMessage);

const [templateId, data] = updateTemplateMetaSpy.mock.calls[0];
await waitFor(() => expect(templateId).toEqual(MockTemplate.id));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this waitFor do anything? It looks like it is comparing two static IDs so the result would never change, or am I missing something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right

);

const [templateId, data] = updateTemplateMetaSpy.mock.calls[0];
await waitFor(() => expect(templateId).toEqual(MockTemplate.id));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here about waitFor.

@BrunoQuaresma BrunoQuaresma merged commit 8499eac into main Mar 21, 2024
@BrunoQuaresma BrunoQuaresma deleted the bq/add-deprecate-test branch March 21, 2024 13:37
Copy link
Collaborator Author

Merge activity

@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test deprecate template flow
2 participants