Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
removed WDIO test for singe delete key
Browse files Browse the repository at this point in the history
  • Loading branch information
PK106552 committed Feb 14, 2024
1 parent 41b0295 commit 752e707
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 47 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 1 addition & 47 deletions packages/terra-date-picker/tests/wdio/date-picker-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ Terra.describeViewports('Date Picker', ['medium'], () => {
it('sets the date', () => {
browser.url('/raw/tests/cerner-terra-framework-docs/date-picker/date-picker-default');
$('input[name="terra-date-month-date-input"]').setValue('0');
browser.keys('a1.be2/;3');
Terra.hideInputCaret('input[name="terra-date-year-date-input"]');
browser.keys('a1.be2/;c3');

Terra.validates.element('key limitations');
});
Expand Down Expand Up @@ -478,51 +477,6 @@ Terra.describeViewports('Date Picker', ['medium'], () => {
});
});

describe('Initial Focus', () => {
beforeEach(() => {
browser.url('/#/raw/tests/cerner-terra-framework-docs/date-picker/date-picker-default');
Terra.hideInputCaret('input[name="terra-date-month-date-input"]');
Terra.hideInputCaret('input[name="terra-date-day-date-input"]');
Terra.hideInputCaret('input[name="terra-date-year-date-input"]');
});

it('Month input focused', () => {
$('input[name="terra-date-month-date-input"]').click();

Terra.validates.element('month input highlighted');
});

it('Month input cleared with single Delete key press and loses highlight', () => {
browser.keys('Delete');

Terra.validates.element('month input cleared completely and loses highlight');
});

it('Day input focused', () => {
$('input[name="terra-date-day-date-input"]').click();

Terra.validates.element('day input highlighted');
});

it('Day input cleared with single Delete key press and loses highlight', () => {
browser.keys('Delete');

Terra.validates.element('day input cleared completely and loses highlight');
});

it('Year input focused', () => {
$('input[name="terra-date-year-date-input"]').click();

Terra.validates.element('year input highlighted');
});

it('Year input cleared with single Delete key press and loses highlight', () => {
browser.keys('Delete');

Terra.validates.element('year input cleared completely and loses highlight');
});
});

describe('Arrow, Delete and Backspace Navigation', () => {
describe('Up Arrow', () => {
beforeEach(() => {
Expand Down

0 comments on commit 752e707

Please sign in to comment.