test: re-enable skipped tests, use quarantine mode (#1329)

This commit is contained in:
Nolan Lawson 2019-07-08 20:51:30 -07:00 committed by GitHub
parent 0e2479559b
commit 48f7c64c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -26,8 +26,8 @@
"test-browser-suite1": "run-p --race run-mastodon build-and-start test-mastodon-suite1",
"test-mastodon-suite1": "run-s wait-for-mastodon-to-start wait-for-mastodon-data testcafe-suite1",
"testcafe": "run-s testcafe-suite0 testcafe-suite1",
"testcafe-suite0": "cross-env-shell testcafe --hostname localhost --skip-js-errors -c 4 $BROWSER tests/spec/0*",
"testcafe-suite1": "cross-env-shell testcafe --hostname localhost --skip-js-errors $BROWSER tests/spec/1*",
"testcafe-suite0": "cross-env-shell testcafe --hostname localhost --skip-js-errors -q -c 4 $BROWSER tests/spec/0*",
"testcafe-suite1": "cross-env-shell testcafe --hostname localhost --skip-js-errors -q $BROWSER tests/spec/1*",
"test-unit": "mocha -r esm -r bin/browser-shim.js tests/unit/",
"wait-for-mastodon-to-start": "node -r esm bin/wait-for-mastodon-to-start.js",
"wait-for-mastodon-data": "node -r esm bin/wait-for-mastodon-data.js",

View File

@ -120,7 +120,7 @@ test('delete and redraft reply', async t => {
.expect(getNthStatusContent(2).innerText).match(/@admin hello there admin\s+oops forgot to say thank you/)
})
test.skip('delete and redraft reply within thread', async t => { // TODO: flaky test
test('delete and redraft reply within thread', async t => {
await postAs('admin', 'this is a thread')
await loginAsFoobar(t)
await t

View File

@ -15,7 +15,7 @@ import { createPollAs, voteOnPollAs } from '../serverActions'
fixture`126-polls.js`
.page`http://localhost:4002`
test.skip('Can vote on polls', async t => { // TODO: flaky test
test('Can vote on polls', async t => {
await createPollAs('admin', 'vote on my cool poll', ['yes', 'no'], false)
await sleep(2000)
await loginAsFoobar(t)
@ -34,7 +34,7 @@ test.skip('Can vote on polls', async t => { // TODO: flaky test
.expect(getNthStatusPollVoteCount(1).innerText).eql('1 vote')
})
test.skip('Can vote on multiple-choice polls', async t => { // TODO: flaky test
test('Can vote on multiple-choice polls', async t => {
await createPollAs('admin', 'vote on my other poll', ['yes', 'no', 'maybe'], true)
await sleep(2000)
await loginAsFoobar(t)

View File

@ -18,7 +18,7 @@ import { loginAsFoobar } from '../roles'
fixture`130-focal-point.js`
.page`http://localhost:4002`
test.skip('Can set a focal point', async t => { // TODO: flaky test
test('Can set a focal point', async t => {
await loginAsFoobar(t)
await t
.typeText(composeInput, 'here is a focal point')