File size: 477 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { join } from 'path'
import { nextTestSetup } from 'e2e-utils'

describe('theme-ui SWC option', () => {
  const { next } = nextTestSetup({
    files: join(__dirname, 'fixture'),
    dependencies: {
      'theme-ui': '0.12.0',
    },
  })

  it('should have theme provided styling', async () => {
    const browser = await next.browser('/')
    const color = await browser.elementByCss('#hello').getComputedCss('color')
    expect(color).toBe('rgb(51, 51, 238)')
  })
})