Buckets:
| import { createNext, FileRef } from 'e2e-utils' | |
| import { NextInstance } from 'e2e-utils' | |
| import { waitFor } from 'next-test-utils' | |
| import path from 'path' | |
| import webdriver from 'next-webdriver' | |
| describe('next-image-forward-ref', () => { | |
| let next: NextInstance | |
| const appDir = path.join(__dirname, 'app') | |
| beforeAll(async () => { | |
| next = await createNext({ | |
| files: new FileRef(appDir), | |
| dependencies: { | |
| 'framer-motion': '7.6.9', | |
| }, | |
| }) | |
| }) | |
| afterAll(() => next.destroy()) | |
| it('allows framer-motion to animate opacity', async () => { | |
| const browser = await webdriver(next.url, '/framer-motion') | |
| expect( | |
| Number(await browser.elementById('img').getComputedCss('opacity')) | |
| ).toBeCloseTo(1) | |
| browser.elementById('img').click() | |
| await waitFor(1000) | |
| expect( | |
| Number(await browser.elementById('img').getComputedCss('opacity')) | |
| ).toBeCloseTo(0) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 920 Bytes
- Xet hash:
- 58a9a8fe386d2242db8969deaee409060340a504b0932c505c4141342fa8f1cd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.