Skip to content
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

Merged
merged 5 commits into from
Mar 18, 2021

Conversation

NamibiaTorres
Copy link
Contributor

@NamibiaTorres NamibiaTorres commented Mar 17, 2021

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 and make admin_client_run. Do a local 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

@robot-mymove
Copy link

robot-mymove commented Mar 17, 2021

Warnings
⚠️

It looks like you are attempting to bypass a linter rule, which is not within
security compliance rules.
** Contains a rule that is not in the permitted eslint list. You are free to disable only: (
no-underscore-dangle
,prefer-object-spread
,object-shorthand
,camelcase
,react/jsx-props-no-spreading
,react/destructuring-assignment
,react/forbid-prop-types
,react/prefer-stateless-function
,react/sort-comp
,import/no-extraneous-dependencies
,import/order
,import/prefer-default-export
,import/no-named-as-default
) **
Please remove the bypass code and address the underlying issue. cc: @transcom/Truss-Pamplemoose

⚠️ This PR does not include changes to unit tests, even though it affects app code.
⚠️

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?

View the frontend file org ADR for more information

Messages
📖 🔗 MB-6581

Generated by 🚫 dangerJS against 1682d1d

@github-actions
Copy link

Bundle difference

Old size New size Diff
45.41 MB 45.41 MB 3.45 KB (0.01%)

@github-actions
Copy link

Bundle difference

Old size New size Diff
45.41 MB 45.41 MB 3.45 KB (0.01%)

labels.forEach((label) => {
cy.get('label').contains(label);
});

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@eamahanna eamahanna left a 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 :)

@NamibiaTorres NamibiaTorres merged commit 58a8f20 into master Mar 18, 2021
@NamibiaTorres NamibiaTorres deleted the nt-mb-6581-add-updateWebhookSubsction-to-page branch March 18, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants