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

add creevey for screenshot testing #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
lib
storybook-static/
report/

# Logs
logs
Expand Down
2 changes: 1 addition & 1 deletion app/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (process.env.NODE_ENV === "production") {

module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "creevey"],
core: {
builder: "storybook-builder-vite",
},
Expand Down
4 changes: 4 additions & 0 deletions app/creevey.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("creevey").CreeveyConfig} */
module.exports = {
storybookUrl: 'http://localhost:6007'
}
Binary file added app/images/Shell/Primary/chrome.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 added app/images/Shell/Tall Content/chrome.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 added app/images/Shell/Wide Content/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@typescript-eslint/eslint-plugin": "4.9.1",
"@typescript-eslint/parser": "4.9.1",
"@vitejs/plugin-react-refresh": "1.3.3",
"creevey": "^0.7.33",
"eslint-config-prettier": "6.15.0",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-functional": "3.1.0",
Expand Down Expand Up @@ -58,6 +59,7 @@
"serve": "vite preview",
"start": "vite",
"storybook:build": "build-storybook",
"storybook": "start-storybook -p 6007"
"storybook": "start-storybook -p 6007",
"test": "creevey -p 3001"
}
}
2 changes: 1 addition & 1 deletion coreui/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", 'creevey'],
core: {
builder: "storybook-builder-vite",
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion coreui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@typescript-eslint/eslint-plugin": "4.26.1",
"@typescript-eslint/parser": "4.26.1",
"@vitejs/plugin-react-refresh": "1.3.3",
"creevey": "^0.7.33",
"eslint-config-prettier": "6.15.0",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-functional": "3.1.0",
Expand Down Expand Up @@ -79,7 +80,7 @@
"storybook:build": "build-storybook",
"storybook:noui": "bash ./tools/storybook_noui.sh",
"storybook": "start-storybook -p 6006",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "creevey"
},
"license": "MIT"
}
Loading