aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/static-pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/static-pages')
-rw-r--r--tests/functional/static-pages/home.spec.ts10
-rw-r--r--tests/functional/static-pages/privacy.spec.ts10
-rw-r--r--tests/functional/static-pages/terms.spec.ts10
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/functional/static-pages/home.spec.ts b/tests/functional/static-pages/home.spec.ts
new file mode 100644
index 0000000..5054e05
--- /dev/null
+++ b/tests/functional/static-pages/home.spec.ts
@@ -0,0 +1,10 @@
1import { test } from '@japa/runner';
2
3test.group('home page', () => {
4 test('returns a 200 response', async ({ client }) => {
5 const response = await client.get('/');
6
7 response.assertStatus(200);
8 response.assertTextIncludes('Go to account dashboard');
9 });
10});
diff --git a/tests/functional/static-pages/privacy.spec.ts b/tests/functional/static-pages/privacy.spec.ts
new file mode 100644
index 0000000..f1d5bec
--- /dev/null
+++ b/tests/functional/static-pages/privacy.spec.ts
@@ -0,0 +1,10 @@
1import { test } from '@japa/runner';
2
3test.group('privacy page', () => {
4 test('returns a 200 response', async ({ client }) => {
5 const response = await client.get('/privacy');
6
7 response.assertStatus(200);
8 response.assertTextIncludes('PRIVACY POLICY');
9 });
10});
diff --git a/tests/functional/static-pages/terms.spec.ts b/tests/functional/static-pages/terms.spec.ts
new file mode 100644
index 0000000..de990e4
--- /dev/null
+++ b/tests/functional/static-pages/terms.spec.ts
@@ -0,0 +1,10 @@
1import { test } from '@japa/runner';
2
3test.group('terms page', () => {
4 test('returns a 200 response', async ({ client }) => {
5 const response = await client.get('/terms');
6
7 response.assertStatus(200);
8 response.assertTextIncludes('Terms of Service');
9 });
10});