mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
remove tests to reflect new button href behavior
This commit is contained in:
@@ -183,22 +183,6 @@ describe('<wa-button>', () => {
|
||||
expect(el.shadowRoot!.querySelector('button')).not.to.exist;
|
||||
});
|
||||
|
||||
it('should render a link with rel="noreferrer noopener" when target is set and rel is not', async () => {
|
||||
const el = await fixture<WaButton>(html`
|
||||
<wa-button href="https://example.com/" target="_blank">Link</wa-button>
|
||||
`);
|
||||
const link = el.shadowRoot!.querySelector('a')!;
|
||||
expect(link?.getAttribute('rel')).to.equal('noreferrer noopener');
|
||||
});
|
||||
|
||||
it('should render a link with rel="" when a target is provided and rel is empty', async () => {
|
||||
const el = await fixture<WaButton>(html`
|
||||
<wa-button href="https://example.com/" target="_blank" rel="">Link</wa-button>
|
||||
`);
|
||||
const link = el.shadowRoot!.querySelector('a')!;
|
||||
expect(link?.getAttribute('rel')).to.equal('');
|
||||
});
|
||||
|
||||
it(`should render a link with a custom rel when a custom rel is provided`, async () => {
|
||||
const el = await fixture<WaButton>(html`
|
||||
<wa-button href="https://example.com/" target="_blank" rel="1">Link</wa-button>
|
||||
|
||||
Reference in New Issue
Block a user