Skip to content

Commit

Permalink
refactor(constants): rename test-ids file
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysKarmazynDFINITY committed Aug 23, 2024
1 parent c5143e0 commit c521468
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion e2e/about-how-modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test } from '@playwright/test';
import {
ABOUT_HOW_MODAL,
ABOUT_HOW_MODAL_OPEN_BUTTON
} from '../src/frontend/src/lib/constants/test-ids.constant';
} from '../src/frontend/src/lib/constants/test-ids.constants';
import { ABOUT_MODALS_VIEWPORT_WIDTH } from './utils/constants/e2e.constants';
import { HomepageLoggedOut } from './utils/pages/homepage.page';

Expand Down
2 changes: 1 addition & 1 deletion e2e/about-what-modal.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ABOUT_WHAT_MODAL, ABOUT_WHAT_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constant';
import { ABOUT_WHAT_MODAL, ABOUT_WHAT_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constants';
import { test } from '@playwright/test';
import { ABOUT_MODALS_VIEWPORT_WIDTH } from './utils/constants/e2e.constants';
import { HomepageLoggedOut } from './utils/pages/homepage.page';
Expand Down
2 changes: 1 addition & 1 deletion e2e/utils/pages/homepage.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
HERO_ANIMATION_CANVAS,
LOGIN_BUTTON,
TOKENS_SKELETONS_INITIALIZED
} from '$lib/constants/test-ids.constant';
} from '$lib/constants/test-ids.constants';
import { type InternetIdentityPage } from '@dfinity/internet-identity-playwright';
import { nonNullish } from '@dfinity/utils';
import { expect, type Locator, type Page, type ViewportSize } from '@playwright/test';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/hero/about/AboutHow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { modalStore } from '$lib/stores/modal.store';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
import { createEventDispatcher } from 'svelte';
import { ABOUT_HOW_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constant';
import { ABOUT_HOW_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constants';
export let asMenuItem = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import IconIdCard from '$lib/components/icons/IconIdCard.svelte';
import CoverHow from '$lib/assets/cover-how-it-works.png';
import Img from '$lib/components/ui/Img.svelte';
import { ABOUT_HOW_MODAL } from '$lib/constants/test-ids.constant';
import { ABOUT_HOW_MODAL } from '$lib/constants/test-ids.constants';
</script>

<Modal on:nnsClose={modalStore.close} testId={ABOUT_HOW_MODAL}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { modalStore } from '$lib/stores/modal.store';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
import { createEventDispatcher } from 'svelte';
import { ABOUT_WHAT_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constant';
import { ABOUT_WHAT_MODAL_OPEN_BUTTON } from '$lib/constants/test-ids.constants';
export let asMenuItem = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import IconWalletConnect from '$lib/components/icons/IconWalletConnect.svelte';
import CoverWhat from '$lib/assets/cover-features.png';
import Img from '$lib/components/ui/Img.svelte';
import { ABOUT_WHAT_MODAL } from '$lib/constants/test-ids.constant';
import { ABOUT_WHAT_MODAL } from '$lib/constants/test-ids.constants';
</script>

<Modal on:nnsClose={modalStore.close} testId={ABOUT_WHAT_MODAL}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { erc20UserTokensNotInitialized } from '$eth/derived/erc20.derived';
import { fade } from 'svelte/transition';
import SkeletonCards from '$lib/components/ui/SkeletonCards.svelte';
import { TOKENS_SKELETONS_INITIALIZED } from '$lib/constants/test-ids.constant';
import { TOKENS_SKELETONS_INITIALIZED } from '$lib/constants/test-ids.constants';
</script>

{#if $erc20UserTokensNotInitialized}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/ui/ThreeBackground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
WebGLRenderer
} from 'three';
import { isNullish } from '@dfinity/utils';
import { HERO_ANIMATION_CANVAS } from '$lib/constants/test-ids.constant';
import { HERO_ANIMATION_CANVAS } from '$lib/constants/test-ids.constants';
let container: HTMLDivElement | undefined | null;
Expand Down

0 comments on commit c521468

Please sign in to comment.