Skip to content

Commit

Permalink
disable halloween
Browse files Browse the repository at this point in the history
  • Loading branch information
Asvarox committed Nov 17, 2024
1 parent 3c27a53 commit 2dd046b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function SongPreviewComponent({
const [showVideo, setShowVideo] = useState(false);
const player = useRef<VideoPlayerRef | null>(null);
const { width: windowWidth, height: windowHeight } = useViewportSize();
useHalloweenTheme(songPreview);
// useHalloweenTheme(songPreview);

const expanded = keyboardControl;

Expand Down
21 changes: 10 additions & 11 deletions src/routes/SingASong/SongSelection/Hooks/usePlaylists.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SongPreview } from 'interfaces';
import { ClosableTooltip } from 'modules/Elements/Tooltip';
import { colorSets } from 'modules/GameEngine/Drawing/styles';
// import { FeatureFlags } from 'modules/utils/featureFlags';
// import isoCodeToCountry from 'modules/utils/isoCodeToCountry';
// import eurovisionIcon from 'routes/SingASong/SongSelection/Components/SongCard/eurovision-icon.svg';
Expand Down Expand Up @@ -69,16 +68,16 @@ export const usePlaylists = (songs: SongPreview[], recommended: string[], isLoad
// ),
// filters: { edition: 'christmas' },
// },
{
name: 'Halloween',
display: (
<>
<span style={{ color: colorSets.halloweenViolet.text }}>Hallo</span>
<span style={{ color: colorSets.halloweenOrange.text }}>ween</span> 🎃
</>
),
filters: { edition: 'halloween' },
},
// {
// name: 'Halloween',
// display: (
// <>
// <span style={{ color: colorSets.halloweenViolet.text }}>Hallo</span>
// <span style={{ color: colorSets.halloweenOrange.text }}>ween</span> 🎃
// </>
// ),
// filters: { edition: 'halloween' },
// },
songLanguages[0]
? ({
name: songLanguages[0].name,
Expand Down
20 changes: 2 additions & 18 deletions tests/song-list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ test.beforeEach(async ({ page, context, browser }) => {
});
const polishPlaylist = 'Polish';
const englishPlaylist = 'English';
const oldPlaylist = 'Oldies';
const modPlaylist = 'Modern';
const duetsPlaylist = 'Duets';
const newPlaylist = 'New';
const allPlaylist = 'All';
Expand All @@ -34,7 +32,7 @@ const polishLang = 'Polish';
const englishLang = 'English';
const frenchLang = 'French';

test.skip('Filters - PlayLists', async ({ page }) => {
test('Filters - PlayLists', async ({ page }) => {
// Make sure the new song mock is actually considered new
const fakeNow = new Date('2023-01-16T10:35:39.918Z').valueOf();

Expand Down Expand Up @@ -91,20 +89,6 @@ test.skip('Filters - PlayLists', async ({ page }) => {
await expect(await pages.songListPage.getSongElement(polEngSong)).toBeVisible();
});

await test.step('Going to oldies-playlist and check songs visibility', async () => {
await page.keyboard.press('ArrowDown');
await pages.songListPage.expectPlaylistToBeSelected(oldPlaylist);
await expect(await pages.songListPage.getSongElement(polOldDuetSong)).toBeVisible();
await expect(await pages.songListPage.getSongElement(engModSong)).not.toBeVisible();
});

await test.step('Going to modern-playlist and check songs visibility', async () => {
await page.keyboard.press('ArrowDown');
await pages.songListPage.expectPlaylistToBeSelected(modPlaylist);
await expect(await pages.songListPage.getSongElement(engModSong)).toBeVisible();
await expect(await pages.songListPage.getSongElement(polOldDuetSong)).not.toBeVisible();
});

await test.step('Going to duets-playlist, and check songs and duet icon visibility', async () => {
await page.keyboard.press('ArrowDown');
await pages.songListPage.expectPlaylistToBeSelected(duetsPlaylist);
Expand Down Expand Up @@ -138,7 +122,7 @@ test.skip('Filters - PlayLists', async ({ page }) => {
});
});

test('Filters - PlayLists (Halloween)', async ({ page }) => {
test.skip('Filters - PlayLists (Halloween)', async ({ page }) => {
// Make sure the new song mock is actually considered new
const fakeNow = new Date('2023-01-16T10:35:39.918Z').valueOf();

Expand Down

0 comments on commit 2dd046b

Please sign in to comment.