Skip to content

UI tests janitorization#6451

Merged
pawelperek-da merged 1 commit into
mainfrom
pawel/ui-tests-maintenance
Jul 20, 2026
Merged

UI tests janitorization#6451
pawelperek-da merged 1 commit into
mainfrom
pawel/ui-tests-maintenance

Conversation

@pawelperek-da

Copy link
Copy Markdown
Contributor

Among the other things
Fixes https://github.com/DACH-NY/cn-test-failures/issues/9237

Complete list of changes:

  1. user.click no longer hides behind waitFor
  1. Replaced getAttribute('disabled').toBeDefined with getAttribute('disabled').not.toBeNull
  • Why? getAttribute('disabled') returns null when false and "" when true. and toBeDefined checks only for !== undefined, hence it's always producing true and false positives
  1. Replaced not.toBe([]) with .not.toHaveLength(0)
  • Why? not.toBe([]) compares an array with newly created [] so it's always true

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@OriolMunoz-da
OriolMunoz-da removed their request for review July 16, 2026 14:03
@OriolMunoz-da

Copy link
Copy Markdown
Contributor

re-request review when it passes CI 😄

@pawelperek-da

Copy link
Copy Markdown
Contributor Author

@isegall-da could you take a look at those errors? are they related to the artifactory nuke?

@isegall-da

Copy link
Copy Markdown
Contributor

@isegall-da could you take a look at those errors? are they related to the artifactory nuke?

Yes, they definitely are. I don't understand how it passed CI on my PR then 🤔

@isegall-da

Copy link
Copy Markdown
Contributor

@isegall-da could you take a look at those errors? are they related to the artifactory nuke?

Yes, they definitely are. I don't understand how it passed CI on my PR then 🤔

I think you're just not based on the latest main. Can you rebase?

@pawelperek-da

Copy link
Copy Markdown
Contributor Author

ah 🤦 let me try that

Signed-off-by: Paweł Perek <pawel.perek@digitalasset.com>
@pawelperek-da
pawelperek-da force-pushed the pawel/ui-tests-maintenance branch from 5d54ecf to 334c4df Compare July 16, 2026 20:14

@OriolMunoz-da OriolMunoz-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ty

should we add lints for all these?

@pawelperek-da

Copy link
Copy Markdown
Contributor Author

Yeah, sounds good, I'll leave it for the tech debt though

@pawelperek-da
pawelperek-da merged commit 4a9b1ae into main Jul 20, 2026
61 checks passed
@pawelperek-da
pawelperek-da deleted the pawel/ui-tests-maintenance branch July 20, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants