Skip to content

Commit

Permalink
Fix e2e
Browse files Browse the repository at this point in the history
Refs: #7178
  • Loading branch information
sdvg committed Jan 17, 2025
1 parent e76198c commit 18d215c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe('kol-input-password', () => {
test('should toggle the password visibility when button is clicked', async ({ page }) => {
await page.setContent('<kol-input-password _label="Password input" _variant="visibility-toggle"></kol-input-password>');
const input = page.locator('kol-input-password input');
const toggleButton = page.locator('.password-toggle-button');
const toggleButton = page.getByTestId('kol-input-password-toggle-button');
await expect(input).toHaveAttribute('type', 'password');
await toggleButton.click();
await expect(input).toHaveAttribute('type', 'text');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class KolInputPassword implements InputPasswordAPI, FocusableElement {
<KolIconButtonFc
componentName="button"
class="kol-input-password__password-toggle-button"
data-testid="kol-input-password-toggle-button"
label={this._passwordVisible ? translate('kol-hide-password') : translate('kol-show-password')}
variant="ghost"
onClick={(): void => {
Expand Down

0 comments on commit 18d215c

Please sign in to comment.