Skip to content

Commit

Permalink
fix(menu): update expected button element
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Sep 28, 2023
1 parent 0828885 commit 7fe7058
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.preset.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = Promise.resolve()
.then(preset => {
preset.writerOpts.mainTemplate = main;
preset.writerOpts.headerPartial = header;
preset.writerOpts.commitUrlFormat = '{{host}}/{{owner}}/{{repository}}/commits/{{hash}}'
preset.writerOpts.commitUrlFormat = '{{host}}/{{owner}}/{{repository}}/commits/{{hash}}';
preset.writerOpts.compareUrlFormat = '{{host}}/{{owner}}/{{repository}}/compare/{{currentTag}}...{{previousTag}}'
return preset;
})
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('e2e:osds-menu-item', () => {
});

it('should display a menu item as a ODS button', async () => {
const button = `<osds-button color="primary" tabindex="0" size="md" type="button" variant="flat" class="hydrated">Button</osds-button>`;
const button = `<osds-button color="primary" tabindex="0" size="md" type="button" variant="flat" class="hydrated" text-align="center">Button</osds-button>`;
await setup({ html: button });
expect(el.innerHTML).toBe(button);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('e2e:osds-menu', () => {
});

it('should display a menu title as a ODS button', async () => {
const button = `<osds-button slot="menu-title" color="primary" tabindex="0" size="md" type="button" variant="flat" class="hydrated">Button</osds-button>`;
const button = `<osds-button slot="menu-title" color="primary" tabindex="0" size="md" type="button" variant="flat" class="hydrated" text-align="center">Button</osds-button>`;
await setup({ attributes: { }, html: button });
expect(menuTitleContent.outerHTML).toBe(button);
});
Expand Down

0 comments on commit 7fe7058

Please sign in to comment.