Skip to content

Fixes cypress tests #2160

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bipuladh
Copy link
Contributor

@bipuladh bipuladh commented Jul 22, 2025

Copy link
Contributor

openshift-ci bot commented Jul 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bipuladh

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

@bipuladh
Copy link
Contributor Author

/test odf-console-e2e-aws

@bipuladh bipuladh force-pushed the fix-tests branch 9 times, most recently from 9b6eed3 to 8bf8c2c Compare July 23, 2025 14:18
@bipuladh
Copy link
Contributor Author

/retest

2 similar comments
@bipuladh
Copy link
Contributor Author

/retest

@bipuladh
Copy link
Contributor Author

/retest

@bipuladh bipuladh force-pushed the fix-tests branch 3 times, most recently from d73b3a6 to 77e1fac Compare July 24, 2025 09:39
Signed-off-by: Bipul Adhikari <[email protected]>
@@ -116,6 +116,7 @@ const InitialEmptyStatePage: React.FC = () => {
<EmptyStateFooter>
<EmptyStateActions>
<Button
data-test="configure-data-foundation"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just an observation for follow-up PRs: the recommended approach is to use a11y selectors instead of data-test: https://docs.cypress.io/app/guides/accessibility-testing

@@ -294,7 +296,7 @@ export const Kebab: React.FC<KebabProps> & KebabStaticProperties = ({
}
>
<Dropdown
data-test="kebab-button"
data-test={dataTestId ?? 'kebab-button'}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nullish coalescing operator only checks null or undefined, but dataTestId could also be an empty string or similar falsy value:

Suggested change
data-test={dataTestId ?? 'kebab-button'}
data-test={dataTestId || 'kebab-button'}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is someone wants to purposefully disable it by passing an empty string we should allow it.

Copy link
Collaborator

@alfonsomthd alfonsomthd Jul 25, 2025

Choose a reason for hiding this comment

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

What is the purpose of passing a data-test empty value? It doesn't make any sense to me.
data-test should always have a value.

Copy link
Contributor

openshift-ci bot commented Jul 25, 2025

@bipuladh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/odf-console-e2e-aws c44b324 link true /test odf-console-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants