Skip to content

Commit 3796b02

Browse files
committed
test(background-image): remove unecessary tests
1 parent 4c0ad09 commit 3796b02

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

elements/pf-v6-background-image/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@ The element uses fixed positioning and sits behind all other content at `z-index
1717
| React prop | Notes |
1818
|-------------|-------------------------------------------------|
1919
| `className` | Not needed; shadow DOM provides encapsulation. |
20-
21-
### Changed API
22-
23-
No changed APIs. The `src` attribute maps directly to the React `src` prop.

elements/pf-v6-background-image/test/pf-background-image.spec.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ describe('<pf-v6-background-image>', function() {
4848
expect(styles.getPropertyValue('background-image')).to.contain('/test/image.jpg');
4949
});
5050

51-
it('should reflect src attribute', function() {
52-
expect(element.getAttribute('src')).to.equal('/test/image.jpg');
53-
});
54-
55-
it('should use fixed positioning', function() {
56-
const styles = getComputedStyle(element);
57-
expect(styles.position).to.equal('fixed');
58-
});
59-
60-
it('should have a negative z-index', function() {
61-
const styles = getComputedStyle(element);
62-
expect(Number(styles.zIndex)).to.be.lessThan(0);
63-
});
64-
6551
it('should update background image when src changes dynamically', async function() {
6652
element.src = '/test/other-image.jpg';
6753
await element.updateComplete;

0 commit comments

Comments
 (0)