Skip to content

Commit

Permalink
Passed Playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Sep 20, 2022
1 parent c1a1615 commit 6ad8933
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routes/nodebuds/+page.svelte
Expand Up @@ -79,7 +79,7 @@
max-width: 600px;
}
section h2 {
section h1 {
padding-bottom: 16px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/quiz/+page.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import Spacing from '$lib/legacy/spacing.svelte';
import Spacing from '$lib/public/legacy/spacing.svelte';
import { QUIZ_DATA } from './data';
import { QUIZ_DATA } from '$lib/public/quiz/questions/data';
import Quiz from './quiz.svelte';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/quiz/progress-bar.svelte
Expand Up @@ -56,13 +56,13 @@
}
@media (prefers-color-scheme: light) {
body:not(.dark) {
:global(body:not(.dark)) {
--progress-bg: rgba(224, 224, 224, 0.918);
}
}
@media (prefers-color-scheme: dark) {
body:not(.light) {
:global(body:not(.light)) {
--progress-bg: #808080;
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/routes/quiz/quiz.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
import { onMount } from 'svelte';
import type { AcmPath } from '$lib/legacy/acm-paths';
import { acmAlgo, acmDev, acmDesign, acmAI, acmGeneral } from '$lib/legacy/acm-paths';
import ArrowLeft from '$lib/components/svg/arrow-left.svelte';
import ArrowRight from '$lib/components/svg/arrow-right.svelte';
import type { QuizData } from './types';
import { TeamMatch } from './types';
import { QuizStorage } from './storage';
import type { AcmPath } from '$lib/public/legacy/acm-paths';
import { acmAlgo, acmDev, acmDesign, acmAI, acmGeneral } from '$lib/public/legacy/acm-paths';
import type { QuizData } from '$lib/public/quiz/questions/types';
import { TeamMatch } from '$lib/public/quiz/questions/types';
import { QuizStorage } from '$lib/public/quiz/responses/storage';
import ProgressBar from './progress-bar.svelte';
import MoreInfo from './more-info.svelte';
Expand Down Expand Up @@ -411,13 +411,13 @@
}
@media (prefers-color-scheme: light) {
body:not(.dark) {
:global(body:not(.dark)) {
--quiz-bg: rgba(243, 243, 243, 0.795);
}
}
@media (prefers-color-scheme: dark) {
body:not(.light) {
:global(body:not(.light)) {
--quiz-bg: #6868682a;
}
}
Expand Down
5 changes: 5 additions & 0 deletions tests/test.ts
Expand Up @@ -29,3 +29,8 @@ test('privacy page has expected h1', async ({ page }) => {
await page.goto('/privacy');
expect(await page.textContent('h1')).toBe('Privacy Policy');
});

test('quiz page has expected h1', async ({ page }) => {
await page.goto('/quiz');
expect(await page.textContent('h1')).toBe('ACM TEAM QUIZ');
});

0 comments on commit 6ad8933

Please sign in to comment.