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

chore(ui5-color-palette-popover): migrate tests to cypress #10778

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Feb 5, 2025

Previously our ui5-color-palette's tests were written using WebDriver IO (wdio) technology.

With this change we migrate our ui5-color-palette's tests to Cypress and also clear old outdated ones.

TO DO:

  • Investigate why one of the tests fail (the one that gets skipped), even though the item is focused, the assertion fails.
  • Delete ColorPalettePopover.spec.js file once resolved.

@hinzzx hinzzx requested a review from vladitasev February 5, 2025 12:50
);

// listener to increment the counter on popover close
cy.get("#colorPalettePopoverTest6").ui5RegisterCloseCounter("#inpOpenChangeCounter");
Copy link
Contributor

Choose a reason for hiding this comment

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

why we don't use stub here?

@@ -56,6 +57,14 @@ declare global {
ui5ColorPickerUpdateInput(name: string, value: string): Chainable<void>
ui5ColorPaletteCheckSelectedColor(colorPaletteItem: string, values: {r: string, g: string, b: string, a: string}): Chainable<void>
ui5ColorPaletteNavigateAndCheckSelectedColor(colorPalette: string, startIndex: number, key: string, expectedValue: string): Chainable<void>
ui5ColorPalettePopoverOpened(): Chainable<void>
ui5ColorPalettePopoverOpen(options?: { opener?: string }): Chainable<void>
ui5GetColorPaletteInPopover(): Chainable<void>
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't doesn't have void as return value

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.

2 participants