Skip to content

Commit

Permalink
test: remove date-time-picker tests covered by snapshots (#8085)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Nov 4, 2024
1 parent cbfa46f commit ecb112d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions packages/date-time-picker/test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,19 +409,6 @@ describe('Initial value', () => {
});
});

describe('helperText', () => {
let dateTimePicker;

beforeEach(() => {
dateTimePicker = fixtureSync('<vaadin-date-time-picker></vaadin-date-time-picker>');
});

it('should display the helper text when provided', () => {
dateTimePicker.helperText = 'Foo';
expect(dateTimePicker.querySelector('[slot="helper"]').textContent).to.equal('Foo');
});
});

describe('Theme attribute', () => {
let dateTimePicker;
let datePicker;
Expand Down
13 changes: 0 additions & 13 deletions packages/date-time-picker/test/properties.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ function getTimePicker(dateTimePicker) {
expect(datePicker.showWeekNumbers).to.be.true;
});

it('should handle label', () => {
dateTimePicker.label = 'Birth date and time';
const label = dateTimePicker.querySelector(':scope > label');
expect(label.textContent).to.equal('Birth date and time');
});

it('should propagate invalid to date and time pickers', () => {
dateTimePicker.invalid = true;
expect(datePicker.invalid).to.be.true;
Expand All @@ -223,13 +217,6 @@ function getTimePicker(dateTimePicker) {
expect(timePicker.required).to.be.true;
});

it('should handle error-message', () => {
dateTimePicker.errorMessage = 'error-message';
dateTimePicker.invalid = true;
const errorMessage = dateTimePicker.querySelector(':scope > [slot=error-message]');
expect(errorMessage.textContent).to.equal('error-message');
});

it('should propagate disabled to date and time pickers', () => {
expect(datePicker.disabled).to.be.false;
expect(timePicker.disabled).to.be.false;
Expand Down

0 comments on commit ecb112d

Please sign in to comment.