Skip to content

Commit

Permalink
fix: libs/ui/tests spec related to snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
themooneer committed Sep 20, 2024
1 parent 570a25f commit 978779a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-socks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/ui": minor
---

Fixed e2e testing and next build issues on ci workflows
8 changes: 5 additions & 3 deletions libs/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
"@ledgerhq/ui-shared": "workspace:^",
"@playwright/test": "~1.40.0",
"concurrently": "^8.0.0",
"cross-env": "^7.0.3",
"json": "^11.0.0",
"lint-staged": "^14.0.0"
},
"scripts": {
"pretest:react": "playwright install",
"test:react": "node tests/react.script webpack.js && node tests/react.script next.js",
"pretest:react:update-snapshots": "playwright install",
"test:react:update-snapshots": "env UPDATE_SNAPSHOTS=1 node tests/react.script webpack.js && env UPDATE_SNAPSHOTS=1 node tests/react.script next.js"
"clean": "pnpm -F ./examples/webpack.js -F ./examples/next.js clean:full",
"test:react": "pnpm build-next && pnpm e2e",
"build-next": "pnpm -w -F ./examples/webpack.js build",
"e2e": "cross-env UPDATE_SNAPSHOTS=1 pnpm concurrently -s=first -k \"pnpm -w -F ./examples/webpack.js serve\" \"playwright test $([ \"$UPDATE_SNAPSHOTS\" = 1 ] && echo \"--update-snapshots\")\""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type CloseProps = {
onPressDismiss?: () => void;
};

console.log("hello");
export const Container = styled(TouchableOpacity)`
background: ${(p) => p.theme.colors.opacityDefault.c05};
flex-direction: row;
Expand Down
Binary file modified libs/ui/tests/react.spec.js-snapshots/dark-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified libs/ui/tests/react.spec.js-snapshots/light-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 978779a

Please sign in to comment.