/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace ScriptCanvasDeveloper { /** EditorautomationTest that will test out various methods creating a group */ class CreateGroupTest : public EditorAutomationTest { public: CreateGroupTest(CreateGroupAction::CreationType creationType = CreateGroupAction::CreationType::Hotkey); ~CreateGroupTest() override = default; }; /** EditorautomationTest that will test out how elements are added/removed from groups in several situations(Addition to group via context menu, drag/drop, connection proposal, or resizing. Removal from group through movement and resizing). */ class GroupManipulationTest : public EditorAutomationTest { private: class OffsetPositionByNodeDimension : public CustomActionState { public: // -1 to 1 will decide how much and which direction we manipulate the specified value by our width/height. OffsetPositionByNodeDimension(float horizontalDimension, float verticalDimension, AutomationStateModelId nodeId, AutomationStateModelId position); ~OffsetPositionByNodeDimension() override = default; void OnCustomAction() override; private: float m_horizontalDimension = 0.0f; float m_verticalDimension = 0.0f; AutomationStateModelId m_nodeId; AutomationStateModelId m_positionId; }; public: GroupManipulationTest(GraphCanvas::NodePaletteWidget* nodePaletteWidget); ~GroupManipulationTest() override = default; }; }