From 48f7c64c6cc74ce173df2b36b34b33217d52acee Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 8 Jul 2019 20:51:30 -0700 Subject: [PATCH] test: re-enable skipped tests, use quarantine mode (#1329) --- package.json | 4 ++-- tests/spec/121-delete-and-redraft.js | 2 +- tests/spec/126-polls.js | 4 ++-- tests/spec/130-focal-point.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a46156aa..e9a08b89 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/spec/121-delete-and-redraft.js b/tests/spec/121-delete-and-redraft.js index ba8ad078..1744258b 100644 --- a/tests/spec/121-delete-and-redraft.js +++ b/tests/spec/121-delete-and-redraft.js @@ -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 diff --git a/tests/spec/126-polls.js b/tests/spec/126-polls.js index a9019e79..80287293 100644 --- a/tests/spec/126-polls.js +++ b/tests/spec/126-polls.js @@ -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) diff --git a/tests/spec/130-focal-point.js b/tests/spec/130-focal-point.js index b8d0feb2..4a951446 100644 --- a/tests/spec/130-focal-point.js +++ b/tests/spec/130-focal-point.js @@ -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')