Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Cookie banner / consent #100

Merged
merged 3 commits into from
Nov 30, 2023
Merged

feat: Cookie banner / consent #100

merged 3 commits into from
Nov 30, 2023

Conversation

chailandau
Copy link
Owner

No description provided.

* chore: add js-cookie package
* feat: add darkBlue shadow mixin
* refactor: put GA in separate component, only use if cookies accepted
* refactor: setNoScroll affects html el instead of body
Copy link

github-actions bot commented Nov 24, 2023

Jest Test Results

Generic badge

Duration: 7.505 seconds
Start: 2023-11-30 18:56:13.437 UTC
Finish: 2023-11-30 18:56:20.942 UTC
Duration: 7.505 seconds
Outcome: Failed | Total Tests: 204 | Passed: 193 | Failed: 11
Total Test Suites: 20
Total Tests: 204
Failed Test Suites: 5
Failed Tests: 11
Passed Test Suites: 15
Passed Tests: 193
❌ Header Menu matches snapshot
Title: matches snapshot
Status: failed
Location: null
Failure Messages:
Error: expect(received).toMatchSnapshot()

Snapshot name: Header Menu matches snapshot 1

  • Snapshot - 9
  • Received + 9

@@ -3,33 +3,33 @@
class="menu"
>


  • <a
    class="link underline-hover menu-link"

    •     href="/booking"
      
    •     rel=""
      
    •     target=""
      
    •     href="http://localhost:3001/booking"
      
    •     rel="noreferrer noopener"
      
    •     target="_blank"
        >
          Booking
        </a>
      </li>
      <li>
        <a
          class="link underline-hover menu-link"
      
    •     href="/events"
      
    •     rel=""
      
    •     target=""
      
    •     href="http://localhost:3001/events"
      
    •     rel="noreferrer noopener"
      
    •     target="_blank"
        >
          Events
        </a>
      </li>
      <li>
        <a
          class="link underline-hover menu-link"
      
    •     href="/schools-camps"
      
    •     rel=""
      
    •     target=""
      
    •     href="http://localhost:3001/schools-camps"
      
    •     rel="noreferrer noopener"
      
    •     target="_blank"
        >
          Schools & Camps
        </a>
      </li>
      <li>
      
      at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/testHelpers.ts:145:30)
      at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
      at new Promise ()
      at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
      at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
      at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
      at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)
  • ❌ Header Mobile Nav matches snapshot
    Title: matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    
    
    

    Snapshot name: Header Mobile Nav matches snapshot 1

    • Snapshot - 9
    • Received + 9

    @@ -7,33 +7,33 @@
    class="menu"
    >


  • <a
    class="link underline-hover menu-link"

    •       href="/booking"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/booking"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Booking
          </a>
        </li>
        <li>
          <a
            class="link underline-hover menu-link"
      
    •       href="/events"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/events"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Events
          </a>
        </li>
        <li>
          <a
            class="link underline-hover menu-link"
      
    •       href="/schools-camps"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/schools-camps"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Schools & Camps
          </a>
        </li>
        <li>
      
      at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/testHelpers.ts:145:30)
      at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
      at new Promise ()
      at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
      at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
      at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
      at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)
  • ❌ Header DesktopNav matches snapshot
    Title: matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    
    
    

    Snapshot name: Header DesktopNav matches snapshot 1

    • Snapshot - 9
    • Received + 9

    @@ -6,33 +6,33 @@
    class="menu"
    >


  • <a
    class="link underline-hover menu-link"

    •       href="/booking"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/booking"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Booking
          </a>
        </li>
        <li>
          <a
            class="link underline-hover menu-link"
      
    •       href="/events"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/events"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Events
          </a>
        </li>
        <li>
          <a
            class="link underline-hover menu-link"
      
    •       href="/schools-camps"
      
    •       rel=""
      
    •       target=""
      
    •       href="http://localhost:3001/schools-camps"
      
    •       rel="noreferrer noopener"
      
    •       target="_blank"
          >
            Schools & Camps
          </a>
        </li>
        <li>
      
      at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/testHelpers.ts:145:30)
      at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
      at new Promise ()
      at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
      at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
      at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
      at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
      at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)
  • ❌ Framer animations menuAnimations matches snapshot

    Title: menuAnimations matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    
    
    

    Snapshot name: Framer animations menuAnimations matches snapshot 1

    Snapshot: {
    "closed": {
    "height": 0,
    "opacity": 0,
    "transition": {
    "delay": 0.15,
    "length": 1,
    },
    "y": "-100%",
    },
    "open": {
    "height": "100vh",
    "opacity": 1,
    "transition": {
    "duration": 0.4,
    "type": "spring",
    },
    "y": 0,
    },
    }
    Received: [Function]
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/framer/tests/animations.test.ts:21:31)
    at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise ()
    at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)

    ❌ Framer animations iconFlip matches snapshot

    Title: iconFlip matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    

    Snapshot name: Framer animations iconFlip matches snapshot 1

    Snapshot: {
    "closed": {
    "rotate": 0,
    "transition": {
    "duration": 0.25,
    "type": "spring",
    },
    },
    "open": {
    "rotate": 180,
    "transition": {
    "duration": 0.25,
    "type": "spring",
    },
    },
    }
    Received: [Function]
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/framer/tests/animations.test.ts:21:31)
    at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise ()
    at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)

    ❌ Framer animations accordionContent matches snapshot

    Title: accordionContent matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    

    Snapshot name: Framer animations accordionContent matches snapshot 1

    Snapshot: {
    "closed": {
    "opacity": 0,
    "transition": {
    "delay": 0.15,
    "length": 1,
    },
    "y": "20%",
    },
    "open": {
    "opacity": 1,
    "transition": {
    "duration": 0.4,
    "type": "spring",
    },
    "y": 0,
    },
    }
    Received: [Function]
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/framer/tests/animations.test.ts:21:31)
    at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise ()
    at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)

    ❌ Link matches snapshot
    Title: matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    

    Snapshot name: Link matches snapshot 1

    • Snapshot - 3
    • Received + 3

    @@ -2,13 +2,13 @@


    <a
    class="link underline-hover"

    •   href="/"
      
    •   rel=""
      
    •   target=""
      
    •   href="http://localhost:6006/"
      
    •   rel="noreferrer noopener"
      
    •   target="_blank"
      >
        This is a link
      </a>
      
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/utils/testHelpers.ts:145:30) at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28) at new Promise () at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)
    ❌ Fragments "SLUG_FRAGMENT" matches snapshot

    Title: "SLUG_FRAGMENT" matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot(hint)
    
    
    

    Snapshot name: Fragments "SLUG_FRAGMENT" matches snapshot: SLUG_FRAGMENT 1

    New snapshot was not written. The update flag must be explicitly passed to write a new snapshot.

    This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default.

    Received:
    "
    docs {
    id
    slug
    title
    }
    "
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/api/tests/graphqlFragments.test.ts:10:30)
    at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise ()
    at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)

    ❌ Fragments "TEXT_CONTENT_FRAGMENT" matches snapshot

    Title: "TEXT_CONTENT_FRAGMENT" matches snapshot
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot(hint)
    

    Snapshot name: Fragments "TEXT_CONTENT_FRAGMENT" matches snapshot: TEXT_CONTENT_FRAGMENT 1

    New snapshot was not written. The update flag must be explicitly passed to write a new snapshot.

    This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default.

    Received:
    "
    ...on TextContentBlock {
    id
    __typename
    textContent {
    heading
    content
    }
    }"
    at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/api/tests/graphqlFragments.test.ts:10:30)
    at Promise.then.completed (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise ()
    at callAsyncCircusFn (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/lilt-nextjs/lilt-nextjs/node_modules/jest-runner/build/testWorker.js:106:12)

    ❌ graphqlQueries mocks HEADER_QUERY successfully
    Title: mocks HEADER_QUERY successfully
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    

    Snapshot name: graphqlQueries mocks HEADER_QUERY successfully 1

    • Snapshot - 4
    • Received + 4

    @@ -36,11 +36,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •           "overridePageName": true,
      
    •           "overridePageName": false,
              },
              {
                "externalLink": "Hello World",
                "id": "Hello World",
                "internalCustomLabel": "Hello World",
      

    @@ -49,11 +49,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •           "overridePageName": true,
      
    •           "overridePageName": false,
              },
            ],
          },
          {
            "externalLink": "Hello World",
      

    @@ -77,11 +77,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •           "overridePageName": true,
      
    •           "overridePageName": false,
              },
              {
                "externalLink": "Hello World",
                "id": "Hello World",
                "internalCustomLabel": "Hello World",
      

    @@ -90,11 +90,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •           "overridePageName": true,
      
    •           "overridePageName": false,
              },
            ],
          },
        ],
      },
      
      at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/api/tests/graphqlQueries.test.ts:27:28)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
    ❌ graphqlQueries mocks FOOTER_QUERY successfully
    Title: mocks FOOTER_QUERY successfully
    Status: failed
    Location: null
    Failure Messages:
    Error: expect(received).toMatchSnapshot()
    
    
    

    Snapshot name: graphqlQueries mocks FOOTER_QUERY successfully 1

    • Snapshot - 2
    • Received + 2

    @@ -12,11 +12,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •       "overridePageName": false,
      
    •       "overridePageName": true,
          },
          {
            "externalLink": "Hello World",
            "id": "Hello World",
            "internalCustomLabel": "Hello World",
      

    @@ -25,11 +25,11 @@
    "slug": "Hello World",
    "title": "Hello World",
    },
    "label": "Hello World",
    "linkType": "external",

    •       "overridePageName": false,
      
    •       "overridePageName": true,
          },
        ],
        "socialLinks": [
          {
            "icon": {
      
      at Object.toMatchSnapshot (/home/runner/work/lilt-nextjs/lilt-nextjs/src/api/tests/graphqlQueries.test.ts:27:28)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

    Copy link

    github-actions bot commented Nov 24, 2023

    Lines Statements Branches Functions
    Coverage: 41%
    43.54% (459/1054) 30.68% (135/440) 46.4% (71/153)
    Coverage Report (41%)
    File% Stmts% Branch% Funcs% LinesUncovered Line #s
    All files43.5430.6846.441.36 
    app0000 
       layout.tsx00003–23
       page.tsx0100001–14
    app/[slug]0000 
       page.tsx00001–38
    src/api100100100100 
       graphqlClient.ts100100100100 
       graphqlFragments.ts100100100100 
       graphqlQueries.ts100100100100 
    src/atoms/Container100100100100 
       Container.tsx100100100100 
       index.ts100100100100 
    src/atoms/Heading808010080 
       Heading.tsx1008010010036
       index.ts010010001–3
    src/atoms/Icon100100100100 
       Icon.tsx100100100100 
       Icon.types.ts100100100100 
    src/atoms/Image10066.66100100 
       Image.tsx10066.6610010035, 52
       index.ts100100100100 
    src/atoms/Image/components91.660100100 
       ExternalImage.tsx75010010029–30
       InternalImage.tsx100100100100 
    src/atoms/Link100100100100 
       Link.tsx100100100100 
       index.ts100100100100 
    src/atoms/Text92.375100100 
       Text.tsx907510010030
       index.ts100100100100 
    src/components/Accordion0000 
       Accordion.tsx00003–29
       index.ts010010001–3
    src/components/Accordion/components0000 
       AccordionItem.tsx00003–83
    src/components/Button100100100100 
       Button.tsx100100100100 
    src/components/ConversionPanel001000 
       ConversionPanel.tsx0010003–43
       index.ts010010001–3
    src/components/CookieBanner0000 
       CookieBanner.tsx00003–124
       GoogleScript.tsx00003–43
       index.ts010010001–3
    src/components/FeatureGrid0000 
       FeatureGrid.tsx00003–22
       index.ts010010001–3
    src/components/FeatureGrid/components001000 
       Feature.tsx0010003–39
    src/components/FeaturedMedia0000 
       FeaturedMedia.tsx00003–66
       index.ts010010001–3
    src/components/Footer0000 
       Footer.tsx00003–62
       index.ts010010001–3
    src/components/Footer/components0000 
       Menu.tsx00005–43
       SocialLink.tsx0010003–26
    src/components/Header87.1772.7271.4286.84 
       Header.tsx87.1772.7271.4286.8448–49, 54–57
    src/components/Header/components96.1992.388.8896 
       DesktopNav.tsx100100100100 
       Menu.tsx92.8588.888092.5931–32
       MenuToggle.tsx100100100100 
       MobileNav.tsx87.51005086.6620–21
       Submenu.tsx10094.44100100103
    src/components/Hero0000 
       Hero.tsx00003–65
       index.ts010010001–3
    src/components/Hero/components0000 
       CtaTile.tsx00003–50
    src/components/IconTileGrid0000 
       IconTileGrid.tsx00003–50
       index.ts010010001–3
    src/components/IconTileGrid/components001000 
       IconTile.tsx0010003–26
    src/components/Process0000 
       Process.tsx00003–45
       index.ts010010001–3
    src/components/Process/components001000 
       Step.tsx0010003–35
    src/components/Special001000 
       Special.tsx0010003–67
       index.ts010010001–3
    src/components/Switchback0000 
       Switchback.tsx00001–94
       index.ts010010001–3
    src/components/TextContent0000 
       TextContent.tsx00004–23
       index.ts010010001–3
    src/components/TextGrid001000 
       TextGrid.tsx0010003–35
       index.ts010010001–3
    src/components/TextGrid/components0000 
       TextGridTiles.tsx00003–22
    src/components/TileGrid001000 
       TileGrid.tsx0010003–22
       index.ts010010001–3
    src/components/TileGrid/components0000 
       Tiles.tsx00003–33
    src/molecules/BackToTop0000 
       BackToTop.tsx00003–74
       index.ts010010001–3
    src/molecules/ButtonMolecule100100100100 
       ButtonMolecule.tsx100100100100 
    src/molecules/Flex100100100100 
       Flex.tsx100100100100 
       index.ts100100100100 
    src/molecules/RichText0000 
       RichText.tsx00001–27
       index.ts010010001–3
    src/molecules/Section100100100100 
       Section.tsx100100100100 
       index.ts100100100100 
    src/molecules/VideoPlayer0000 
       VideoPlayer.tsx00003–58
       index.ts010010001–3
    src/store90.4710077.7792.85 
       createCookieBannerSlice.ts66.6610033.337512
       createMenuSlice.ts100100100100 
       useStore.ts100100100100 
    src/templates/40401001000 
       404.tsx010010001–40
       index.ts010010001–3
    src/templates/Page0000 
       Page.tsx00003–26
       index.ts010010001–3
    src/utils37.82235034.63 
       RenderComponents.tsx00001–110
       RenderSections.tsx00001–54
       formatDate.ts0100007–10
       functions.ts100100100100 
       getCopyRightText.ts00007–14
       getData.ts00001–18
       getLink.ts1009010010029
       getMetadataInfo.ts00009
       parseRichText.tsx00001–145
       parseUrl.ts100100100100 
       setNoScroll.ts85.7166.6610083.338
       svgHelpers.ts1005010010018
       testHelpers.ts100100100100 
       useScrollDirection.ts00001–31
    src/utils/framer90.934.3760100 
       LazyAnimatePresence.tsx100100100100 
       LazyMotionDom.tsx100100100100 
       animations.tsx86.6634.37601007–17, 31, 40–93
    src/utils/hooks100100100100 
       useMediaQuery.tsx100100100100 

    Copy link

    github-actions bot commented Nov 24, 2023

    ❌ Visual regressions detected in Storybook

    View report https://chailandau.github.io/lilt-nextjs/

    If visual regressions are as expected, run yarn loki:update and then yarn reg-cli:update twice on local and push up.

    @chailandau chailandau merged commit c78406f into main Nov 30, 2023
    1 of 2 checks passed
    @chailandau chailandau deleted the cookie branch November 30, 2023 18:57
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    1 participant