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

Add tests for state list drawer #47

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

upalatucci
Copy link
Collaborator

@upalatucci upalatucci commented Jun 30, 2023

Add a cypress test to ensure that the nns table works, the interface is clickable and the Drawer opens showing good information.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: upalatucci

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Collaborator

@avivtur avivtur left a comment

Choose a reason for hiding this comment

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

Hi @upalatucci
I'd suggest adding a config to have a similar prop like we have in the kubevirt-plugin data-test-id and assigning the components you want to get with unique id's, that should improve readability on this test and will make our future lives easier :)

@upalatucci upalatucci force-pushed the state-drawer-test branch 2 times, most recently from bd31ba2 to d99bbfa Compare July 5, 2023 12:34
@upalatucci
Copy link
Collaborator Author

thanks @avivtur fixed

@@ -0,0 +1,41 @@
const EXPAND_INTERFACES_LIST_TEST_ID = '#expand-interfaces-list0';
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be cleaner to keep the constants in a separate file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@pcbailey
Copy link
Collaborator

pcbailey commented Jul 6, 2023

/lgtm

@pcbailey
Copy link
Collaborator

pcbailey commented Jul 6, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jul 6, 2023
@openshift-merge-robot openshift-merge-robot merged commit a478c98 into nmstate:main Jul 6, 2023
2 checks passed
upalatucci pushed a commit to upalatucci/nmstate-console-plugin that referenced this pull request Sep 25, 2024
CNV-41292,OCPBUGS-36238: Sync Upstream/Downstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants