diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/date-picker/property-editor-ui-date-picker.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/date-picker/property-editor-ui-date-picker.test.ts
index 05c9ab0920..09f95a6657 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/date-picker/property-editor-ui-date-picker.test.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/date-picker/property-editor-ui-date-picker.test.ts
@@ -4,41 +4,40 @@ import { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui-date-
import { defaultA11yConfig } from '@umbraco-cms/test-utils';
describe('UmbPropertyEditorUIDatePickerElement', () => {
- let element: UmbPropertyEditorUIDatePickerElement;
- let inputElement: UUIInputElement;
+ let element: UmbPropertyEditorUIDatePickerElement;
+ let inputElement: UUIInputElement;
- beforeEach(async () => {
- element = await fixture(
- html` `
- );
- inputElement = element.shadowRoot?.querySelector('uui-input') as UUIInputElement;
- });
+ beforeEach(async () => {
+ element = await fixture(html` `);
+ inputElement = element.shadowRoot?.querySelector('uui-input') as UUIInputElement;
+ console.log(element);
+ });
- it('is defined with its own instance', () => {
- expect(element).to.be.instanceOf(UmbPropertyEditorUIDatePickerElement);
- });
+ it('is defined with its own instance', () => {
+ expect(element).to.be.instanceOf(UmbPropertyEditorUIDatePickerElement);
+ });
- it('should have an input element', () => {
- expect(inputElement).to.exist;
- });
+ it('should have an input element', () => {
+ expect(inputElement).to.exist;
+ });
- it('should show a datetime-local input by default', () => {
- expect(inputElement.type).to.equal('datetime-local');
- });
+ it('should show a datetime-local input by default', () => {
+ expect(inputElement.type).to.equal('datetime-local');
+ });
- it('should show a type=date field if the format only contains a date', async () => {
- element.config = [{alias: 'format', value: 'YYYY-MM-dd'}];
- await element.updateComplete;
- expect(inputElement.type).to.equal('date');
- });
+ it('should show a type=date field if the format only contains a date', async () => {
+ element.config = [{ alias: 'format', value: 'YYYY-MM-dd' }];
+ await element.updateComplete;
+ expect(inputElement.type).to.equal('date');
+ });
- it('should show a type=time field if the format only contains a time', async () => {
- element.config = [{alias: 'format', value: 'HH:mm'}];
- await element.updateComplete;
- expect(inputElement.type).to.equal('time');
- });
+ it('should show a type=time field if the format only contains a time', async () => {
+ element.config = [{ alias: 'format', value: 'HH:mm' }];
+ await element.updateComplete;
+ expect(inputElement.type).to.equal('time');
+ });
- it('passes the a11y audit', async () => {
- await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
- });
+ it('passes the a11y audit', async () => {
+ await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
+ });
});