Skip to content

Commit 884bcef

Browse files
committed
update path pattern and run setup.js before all tests
1 parent cac3436 commit 884bcef

30 files changed

+5
-25
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ jobs:
127127
name: Run e2e tests
128128
command: |
129129
cd tests/e2e/dist
130-
export TEST_FILES=$(circleci tests glob "tests/**/*.js" | circleci tests split --split-by=timings)
130+
export SETUP_TEST="tests/setup.js"
131+
export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.js" | circleci tests split --split-by=timings)
132+
export TEST_FILES="$SETUP_TEST\n$TEST_FILES"
131133
echo "Running tests: $TEST_FILES"
132134
cd ../../..
133135
.circleci/e2e/test.app.sh

tests/e2e/src/helpers/api/Eula.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,4 @@ export class Eula {
1313
)
1414
expect(await response.status).eql(200)
1515
}
16-
17-
/**
18-
* Reset eula
19-
*/
20-
static async reset(): Promise<void> {
21-
const spec = { agreements: { analytics: false, notifications: false, eula: false, encryption: false } }
22-
const response = await CommonAPIRequests.sendPatchRequest(
23-
`/settings`,
24-
spec,
25-
)
26-
expect(await response.status).eql(200)
27-
}
2816
}

0 commit comments

Comments
 (0)