forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kie-issues#1158: On the Boxed Expression Component, changing the Expr…
…essionVariableCell text content will fail to commit if the focus is changed to another cell Closes: apache/incubator-kie-issues#1158
- Loading branch information
Showing
20 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+13.7 KB
...ressions/decisionTable/boxed-decision-table-annotation-commit-on-cell-click.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
BIN
+15.2 KB
...gle-Chrome/boxedExpressions/every/boxed-every-variable-commit-on-cell-click.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
BIN
+14.1 KB
...dExpressions/invocation/boxed-invocation-function-name-commit-on-cell-click.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
BIN
+15 KB
...oogle-Chrome/boxedExpressions/some/boxed-some-variable-commit-on-cell-click.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
BIN
+12.4 KB
...ressions/decisionTable/boxed-decision-table-annotation-commit-on-cell-click.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
BIN
+13.6 KB
..._/chromium/boxedExpressions/every/boxed-every-variable-commit-on-cell-click.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
BIN
+12.8 KB
...dExpressions/invocation/boxed-invocation-function-name-commit-on-cell-click.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
BIN
+13.5 KB
...s__/chromium/boxedExpressions/some/boxed-some-variable-commit-on-cell-click.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
BIN
+10.8 KB
...ressions/decisionTable/boxed-decision-table-annotation-commit-on-cell-click.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
BIN
+11.8 KB
...s__/webkit/boxedExpressions/every/boxed-every-variable-commit-on-cell-click.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
BIN
+11.3 KB
...dExpressions/invocation/boxed-invocation-function-name-commit-on-cell-click.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
BIN
+11.8 KB
...ots__/webkit/boxedExpressions/some/boxed-some-variable-commit-on-cell-click.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions
57
packages/boxed-expression-component/tests-e2e/api/annotationCell.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* 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 { Locator } from "@playwright/test"; | ||
import { ContextMenu } from "./expressionContainer"; | ||
|
||
export class AnnotationCell { | ||
constructor(private locator: Locator) {} | ||
|
||
public async open() { | ||
await this.locator.nth(0).click(); | ||
} | ||
|
||
public async getPopoverMenu() { | ||
return this.locator.page().getByTestId("kie-tools--bee--expression-popover-menu"); | ||
} | ||
|
||
public async setName(params: { name: string; close: boolean }) { | ||
await this.locator.click(); | ||
await this.locator.getByRole("textbox").fill(params.name); | ||
if (params.close) { | ||
await this.locator.getByRole("textbox").press("Enter"); | ||
} | ||
} | ||
|
||
public async getName() { | ||
return await this.locator.getByTestId("kie-tools--bee--expression-info-name").nth(0).innerText(); | ||
} | ||
public async select() { | ||
// Uses the 1,1 to avoid problems by clicking on the element corner | ||
await this.content.click({ position: { x: 1, y: 1 } }); | ||
} | ||
|
||
get content() { | ||
return this.locator.nth(0); | ||
} | ||
|
||
get contextMenu() { | ||
return new ContextMenu(this.locator); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters