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

kie-issues#950: Exploratory phase of the strategy for implementing the E2E test suite for the new SceSim editor #2188

Merged
merged 50 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
77d1538
kie-issues#950:Exploratory phase of the strategy for implementing the…
kbowers-ibm Feb 28, 2024
4a1b1f2
changing names
kbowers-ibm Feb 28, 2024
00eddb0
Merge branch 'main' into kie-issues#950
kbowers-ibm Feb 28, 2024
ef06d13
updating pnpm-lock file
kbowers-ibm Feb 28, 2024
3f0c7e6
updating locators for keyboard.spec
kbowers-ibm Mar 1, 2024
049b87d
updating tests to use getByRole where possible and removing css loctors
kbowers-ibm Mar 1, 2024
826eb1a
Addressing comments
kbowers-ibm Mar 5, 2024
534808f
Implementing feedback
kbowers-ibm Mar 11, 2024
2ac148c
Fixing imports
kbowers-ibm Mar 11, 2024
40e7229
improve context menu tests
kbowers-ibm Mar 11, 2024
ca00d91
fixing test scenario images
kbowers-ibm Mar 11, 2024
2cf5c3d
Adding use cases stories
kbowers-ibm Mar 12, 2024
4faa051
Merge branch 'main' into kie-issues#950
kbowers-ibm Mar 18, 2024
5550686
Improving fixtures and overall readability of the tests
kbowers-ibm Mar 19, 2024
04139a6
improved storybook to use args and more fixture refactoring
kbowers-ibm Mar 19, 2024
d9d25cd
fixing selector panel fixtures
kbowers-ibm Mar 19, 2024
4a7945e
renaming fill functions to reduce redundancy
kbowers-ibm Mar 19, 2024
19820a9
further simplifying of code
kbowers-ibm Mar 19, 2024
54ea3e0
addressing comments
kbowers-ibm Mar 19, 2024
990ef4e
Update stories and wrapper
ljmotta Mar 21, 2024
179fb54
Use path on editor setContent
ljmotta Mar 21, 2024
c946bd6
Merge pull request #1 from ljmotta/kennedy-kie-issues#950
kbowers-ibm Mar 21, 2024
532afc2
fixing formatting
kbowers-ibm Mar 21, 2024
9857d25
uncommenting tests
kbowers-ibm Mar 21, 2024
c8ac697
Add storybook args
ljmotta Mar 21, 2024
9fe980f
Remove story style decorator
ljmotta Mar 21, 2024
7eea009
Remove maxPixelDiff
ljmotta Mar 21, 2024
a76aa6a
Update screenshots
ljmotta Mar 21, 2024
bb694cd
Merge branch 'kie-issues#950' into kennedy-kie-issues#950-part-3
kbowers-ibm Mar 21, 2024
b1bbbb1
Merge pull request #3 from ljmotta/kennedy-kie-issues#950-part-3
kbowers-ibm Mar 21, 2024
d9660f4
adding all screenshots
kbowers-ibm Mar 21, 2024
fdfbe47
easing readability
kbowers-ibm Mar 21, 2024
97d3532
removing unused imports
kbowers-ibm Mar 25, 2024
2946c07
Merge branch 'main' into kie-issues#950
kbowers-ibm Mar 25, 2024
540d2cd
removing pnpm test
kbowers-ibm Mar 25, 2024
5fa5bcf
removing change to testscenarioeditor
kbowers-ibm Mar 25, 2024
6b9ede9
Addressed feedback
kbowers-ibm Mar 28, 2024
129761f
merging main
kbowers-ibm Mar 28, 2024
8ec0b29
updating screenshots
kbowers-ibm Mar 28, 2024
64b37d8
updating screenshots based on new functionality
kbowers-ibm Mar 28, 2024
ae8847b
restructuring dev web app folder
kbowers-ibm Apr 2, 2024
5732394
updating reset and xml button functionality
kbowers-ibm Apr 2, 2024
c350600
merge main
kbowers-ibm Apr 5, 2024
fb9d908
updating pnpm lock
kbowers-ibm Apr 5, 2024
3d65ecc
updating pnpm lock
kbowers-ibm Apr 8, 2024
1d58d6c
Merge branch 'main' into kie-issues#950
kbowers-ibm Apr 8, 2024
b2f2fbb
updating storybook config
kbowers-ibm Apr 8, 2024
073c6cd
additional env changes
kbowers-ibm Apr 8, 2024
6d728b1
Merge branch 'main' into kie-issues#950
kbowers-ibm Apr 9, 2024
36eaa2b
Merge branch 'main' into kie-issues#950
kbowers-ibm Apr 11, 2024
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
18 changes: 18 additions & 0 deletions packages/scesim-editor/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
31 changes: 31 additions & 0 deletions packages/scesim-editor/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { baseConfig } from "@kie-tools/storybook-base/dist/config/baseConfig";

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { env } from "../env";
const buildEnv: any = env; // build-env is not typed

const config = {
...baseConfig(buildEnv.webpack.dev),
};

export default config;
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
* under the License.
*/

import * as React from "react";
import * as ReactDOM from "react-dom";
import { addons } from "@storybook/manager-api";
import { KieToolsTheme } from "@kie-tools/storybook-base/dist/config/theme";

import { DevWebApp } from "./DevWebApp";

import "./index.css";

ReactDOM.render(<DevWebApp />, document.getElementById("dev-webapp"));
addons.setConfig({
theme: KieToolsTheme,
});
56 changes: 56 additions & 0 deletions packages/scesim-editor/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import * as React from "react";
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
options: {
storySort: {
order: [
"Dev",
"SceSim Editor",
["Overview", "*", ["Overview", "*", ["Overview", "*"]]],
"Features",
["Overview", "*", ["Overview", "*", ["Overview", "*"]]],
"Use Cases",
["Overview", "*", ["Overview", "*", ["Overview", "*"]]],
],
},
},
docs: {
toc: {
headingSelector: "h2, h3",
},
},
},

// It should be Story() to be possible to use "preview-api" inside stories; (https://github.com/storybookjs/storybook/issues/22132)
decorators: [
(Story) => (
<div data-testid="test-scenario-editor" style={{ margin: "1em" }}>
{Story()}
</div>
),
],
};

export default preview;
191 changes: 0 additions & 191 deletions packages/scesim-editor/dev-webapp/src/DevWebApp.tsx

This file was deleted.

Binary file not shown.
35 changes: 0 additions & 35 deletions packages/scesim-editor/dev-webapp/static/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions packages/scesim-editor/dev-webapp/tsconfig.json

This file was deleted.

Loading
Loading