-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2203 Create test cases for new function to control contents of Left … (
#2204) Signed-off-by: Prince Sanchez <[email protected]>
- Loading branch information
1 parent
d3cf348
commit 5ccc291
Showing
6 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
canvas_modules/harness/cypress/e2e/canvas/comments-wysiwyg.cy.js
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
33 changes: 33 additions & 0 deletions
33
canvas_modules/harness/cypress/e2e/canvas/left-flyout.cy.js
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,33 @@ | ||
/* | ||
* Copyright 2024 Elyra Authors | ||
* | ||
* Licensed 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. | ||
*/ | ||
describe("Test for verifying the Left Flyout panel functionality and layout in the application", function() { | ||
beforeEach(() => { | ||
cy.visit("/"); | ||
cy.setCanvasConfig({ "selectedPaletteLayout": "None" }); | ||
cy.setCanvasConfig({ "selectedShowLeftFlyout": true }); | ||
}); | ||
|
||
it("Test ensuring the Left Flyout panel has the correct default size", function() { | ||
cy.verifyLeftFlyoutPanelWidth(300); | ||
cy.verifyLeftFlyoutPanelHeight(750); | ||
}); | ||
|
||
it("Test ensuring the Left Flyout panel has the correct size when positioned under the Canvas toolbar", function() { | ||
cy.setCanvasConfig({ "selectedLeftFlyoutUnderToolbar": true }); | ||
cy.verifyLeftFlyoutPanelWidth(300); | ||
cy.verifyLeftFlyoutPanelHeight(709); | ||
}); | ||
}); |
32 changes: 32 additions & 0 deletions
32
canvas_modules/harness/cypress/e2e/canvas/right-flyout.cy.js
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,32 @@ | ||
/* | ||
* Copyright 2024 Elyra Authors | ||
* | ||
* Licensed 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. | ||
*/ | ||
describe("Test for verifying the Right Flyout panel functionality and layout in the application", function() { | ||
beforeEach(() => { | ||
cy.visit("/"); | ||
cy.setCanvasConfig({ "selectedShowRightFlyout": true }); | ||
}); | ||
|
||
it("Test ensuring Right Flyout panel has the correct default size", function() { | ||
cy.verifyRightFlyoutPanelWidth(300); | ||
cy.verifyRightFlyoutPanelHeight(750); | ||
}); | ||
|
||
it("Test ensuring Right Flyout panel has the correct size when positioned under the Canvas toolbar", function() { | ||
cy.setCanvasConfig({ "selectedRightFlyoutUnderToolbar": true }); | ||
cy.verifyRightFlyoutPanelWidth(300); | ||
cy.verifyRightFlyoutPanelHeight(709); | ||
}); | ||
}); |
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