cleanup tests

This commit is contained in:
Nolan Lawson 2018-03-08 18:09:11 -08:00
parent 53081ffe54
commit 4177de913d

View file

@ -1,14 +1,14 @@
import { Selector as $ } from 'testcafe' import { Selector as $ } from 'testcafe'
import { import {
getNthStatus, getUrl, validateTimeline, scrollToBottomOfTimeline, getFirstVisibleStatus, getNthStatus, getUrl, validateTimeline, scrollToBottomOfTimeline, getFirstVisibleStatus,
goBack, forceOffline, forceOnline, homeNavButton, searchNavButton, searchInput, getNthSearchResult goBack, forceOffline, forceOnline, searchNavButton, searchInput, getNthSearchResult
} from '../utils' } from '../utils'
import { foobarRole } from '../roles' import { foobarRole } from '../roles'
import { bazThreadRelativeTo2, bazThreadRelativeTo2b, bazThreadRelativeTo2B2, quuxThread } from '../fixtures' import { bazThreadRelativeTo2, bazThreadRelativeTo2b, bazThreadRelativeTo2B2, quuxThread } from '../fixtures'
fixture`009-threads.js` fixture`009-threads.js`
.page`http://localhost:4002` .page`http://localhost:4002`
/*
test('Shows a thread', async t => { test('Shows a thread', async t => {
await t.useRole(foobarRole) await t.useRole(foobarRole)
.click($('a').withText('quux')) .click($('a').withText('quux'))
@ -38,7 +38,6 @@ test('Scrolls to proper point in thread', async t => {
.expect(Math.round(getNthStatus(16).boundingClientRect.top)) .expect(Math.round(getNthStatus(16).boundingClientRect.top))
.eql(Math.round($('.container').boundingClientRect.top)) .eql(Math.round($('.container').boundingClientRect.top))
}) })
*/
async function navigateToBazAccount(t) { async function navigateToBazAccount(t) {
await t.click(searchNavButton) await t.click(searchNavButton)