mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-15 11:48:35 +01:00
efdb0bc534
* more attempts to fix test flakiness * remove testcafe roles entirely * really remove testcafe roles * run testcafe in parallel x2 * run testcafe in parallel x4 * fix online/offline forcing in tests * fix pin test
22 lines
658 B
JavaScript
22 lines
658 B
JavaScript
import {
|
|
settingsNavButton
|
|
} from '../utils'
|
|
import { loginAsFoobar } from '../roles'
|
|
import { Selector as $ } from 'testcafe'
|
|
|
|
fixture`020-themes.js`
|
|
.page`http://localhost:4002`
|
|
|
|
test('can set a theme', async t => {
|
|
await loginAsFoobar(t)
|
|
await t
|
|
.click(settingsNavButton)
|
|
.click($('a[href="/settings/instances"]'))
|
|
.click($('a[href="/settings/instances/localhost:3000"]'))
|
|
.expect($('body').getAttribute('class')).eql(undefined)
|
|
.click($('input[value="scarlet"]'))
|
|
.expect($('body').getAttribute('class')).eql('theme-scarlet')
|
|
.click($('input[value="default"]'))
|
|
.expect($('body').getAttribute('class')).eql('')
|
|
})
|