-
Notifications
You must be signed in to change notification settings - Fork 35
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
MB-6581-add-webhook-subscription-page #6159
MB-6581-add-webhook-subscription-page #6159
Conversation
|
Bundle difference
|
Bundle difference
|
labels.forEach((label) => { | ||
cy.get('label').contains(label); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to check which fields are read-only and which are editable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, was reading through this old cypress PR, I think that depends if the field has hidden or disabled inputs? I was looking at using .type()
to check readonly fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment, but everything looks good :)
Description
Add an edit webhook subscription page that should enable the following fields to update: subscriptionId, EventKey, Severity, CallbackURL, Status.
Add one cypress test to test that the new edit page works as expected and updates the appropriate fields.
Reviewer Notes
When writing my test I noticed that the test associated with the create page isn't working. I updated the tests so that they are now passing. A second pair of eyes on these fixes are appreciated.
Setup
To check the new page exists run
make server_run
andmake admin_client_run
. Do alocal sign-in
and then select an existing admin-user to log in. Go to the WebhookSubscription tab and click on one subscription. Then click on "Edit" in the top right hand corner to inspect the Edit page.To run the tests:
yarn test:e2e
. Then select the "Webhook Subscription" file in the cypress browser. You should be directed to the tests for all Webhook Subscription pages.References