Skip to content

Commit

Permalink
Merge pull request #246 from yoonghan/develop
Browse files Browse the repository at this point in the history
Fix backstops
  • Loading branch information
yoonghan authored Aug 18, 2024
2 parents d099d71 + 6e18240 commit f04f4a2
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 34 deletions.
29 changes: 6 additions & 23 deletions backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "http://localhost:3000/experiments/homepage-v1",
"delay": 500,
"scrollBySelector": {
"id": "#parallax-container",
"posY": 10000
},
"clickSelector": "text=Write To Us",
"postInteractionWait": 1000,
"selectorExpansion": true,
Expand All @@ -44,17 +40,17 @@
"requireSameDimensions": true
},
{
"label": "Homepage on Desktop/tablet can access from navigation",
"url": "http://localhost:3000/experiments/homepage-v1",
"label": "Homepage Commandbar search on table",
"cookieDomain": "localhost",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "http://localhost:3000/experiments/homepage-v1",
"delay": 500,
"postInteractionWait": 2000,
"buttonClickByName": "search",
"postInteractionWait": 4000,
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.4,
"clickSelector": "nav p:text('Testing Deployment')",
"requireSameDimensions": true,
"misMatchThreshold": 0.3,
"requireSameDimensions": false,
"viewports": [
{
"label": "tablet",
Expand All @@ -63,19 +59,6 @@
}
]
},
{
"label": "Homepage Commandbar search",
"cookieDomain": "localhost",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "http://localhost:3000/experiments/homepage-v1",
"delay": 500,
"buttonClickByName": "search",
"postInteractionWait": 4000,
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.3,
"requireSameDimensions": false
},
{
"label": "About Page",
"url": "http://localhost:3000/about",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion backstopjs.approve
Original file line number Diff line number Diff line change
@@ -1 +1 @@
569
575
4 changes: 1 addition & 3 deletions src/app/experiments/storybook/config/PopupKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import PopupKeyboard from "@/components/PopupKeyboard"

const emptyFn = () => {}

const ArrowKeyboard = (
export const ArrowKeyboard = () => (
<PopupKeyboard
keyboardType="Arrows"
onClickCallback={emptyFn}
buttonText={"Show Me"}
/>
)

export default ArrowKeyboard
9 changes: 2 additions & 7 deletions src/app/experiments/storybook/config/componentList.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import MegaMenu from "@/components/MegaMenu"
import dynamic from "next/dynamic"
import ButtonsBar from "./ButtonsBar"
import Cards from "./Cards"
import Tables from "./Tables"
import PopupKeyboard from "./PopupKeyboard"
import { ArrowKeyboard } from "./PopupKeyboard"
import Canvases from "./Canvases"
import ScrollableListDemo from "./ScrollableList"
import { OrderedFigure, ReversedFigure } from "./Figure"
Expand All @@ -21,10 +20,6 @@ export const storyBookList = [
title: "Dialogs",
component: <NoSSRDialog />,
},
{
title: "Menu",
component: <MegaMenu />,
},
{
title: "Cards",
component: Cards,
Expand All @@ -43,7 +38,7 @@ export const storyBookList = [
},
{
title: "Keyboard",
component: PopupKeyboard,
component: <ArrowKeyboard />,
},
{
title: "Canvases",
Expand Down

0 comments on commit f04f4a2

Please sign in to comment.