Skip to content

Merge dragdnddrop tests - #1035

Open
3ashour wants to merge 74 commits into
mainfrom
merge_dragdnddrop_tests
Open

Merge dragdnddrop tests#1035
3ashour wants to merge 74 commits into
mainfrom
merge_dragdnddrop_tests

Conversation

@3ashour

@3ashour 3ashour commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Changes Made

How to Test

  1. Steps to reproduce/test the behavior
  2. Expected outcomes

Notes

3ashour and others added 30 commits July 17, 2026 15:31
…sts #1031 .

-Converted CodeAppFiles.Feature Scenarios to pure JUnit
-Added proper @beforeeach setup and @AfterEach cleanup .
-Reused existing Utilities .
…sTests #1031

-Converted  CodeAppSettings.Feature scenarios to pure Junit .
-Added proper @beforeeach setup and @AfterEach cleanup .
-Reused existing Utilities .
test : convert drag and drop template tests to Junit .
…sted rules

-Add test cases for " unfiltered Data " scenario to verify all columns and row count .
- Add test cases for "Filter Data" .
- Add test cases for nested rule filter with And Operator .
- Verify frame ID validation after running notebook cells .
- Add helper method openNotebookAndStartDataFilter() to reduce code duplication
- Update clean up test app and catalog after each test
- Add test cases for validate Import Database Query .
- Add test cases for Import Data Edit Button and Import Data Form
- Update clean up test app and catalog after each test
- Add test cases for test Creation And Duplication Of New Notebook
- Add test cases for "Filter Data" .
- Add test cases for test Deletion Of New Notebook .
- Add test cases for test Search Functionality Of New Notebook .
 - Add test cases for Uppercase Function In Transformation.
- Update clean up test app and catalog after each test
- Add test cases for test Python Output In Notebook .
- Add test cases for test Pixel Output In Notebook

- Update clean up test app and catalog after each test
- Add Verify Column Values Test Cases .
-Add Verify Time stamp Function Test .
- Update clean up test app and catalog after each test
-Replace NotebookPageUtils.java with fixed version .
-Changes two  methods only .
- add waits to getToastMessage() method .
- add isChecked() to isPortalToggleInExpectedState() method .

@ericgonzal8 ericgonzal8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the comments and address the concerns, thanks

Comment thread src/test/java/aicore/unit/DragAndDrop/charts/CreateAppUsingDragAndDropCharts.java Outdated
Comment thread src/main/java/aicore/pages/database/DataBaseCreationUtils.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/charts/DragAndDropDataGrid.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/notebook/NotebookDataFiltersTests.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/notebook/NotebookDBOperationsTests.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/notebook/NotebookQueryUppercaseTests.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/notebook/NotebookTransformationTests.java Outdated
Comment thread src/test/java/aicore/unit/DragAndDrop/permissions/CreateAppEditorPermission.java Outdated
verifyWelcomePage(page);
DragAndDropBlocksPageUtils.clickOnBlocksOption(page);

String databaseId = DatabaseTestUtils.uploadDatabaseZip(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the resource locks to all the tests in this class since this resource is being uploaded in the BeforeEach


@AfterEach
void tearDown(@PWPage Page page) {
CommonUtils.navigateAndDeleteApp(page, appName);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to delete the uploaded resource here. The uploading util will check if the resource exists and try to delete it before uploading but the tests need to be able to run in clean environments each time so as to ensure consistent outcomes regardless of order of execution.

private String appName;

@BeforeEach
@ResourceUploadLock(TestResources.TEST_DATABASE_ZIP)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These resource lock tags need to be applied to the test methods rather than these life-cycle methods. Also can cause bottle-necks when locking resources for tests that don't need it. Please move to the applicable tests

}

@AfterEach
void tearDown(@PWPage Page page) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure you are also deleting the uploaded resources after the test



@Test
public void validateAscendingAndDescendingFilter_test(@PWPage Page page) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These app resources also need to be cleaned up when the test finishes.



@Test
public void validateDateModifiedFilter_test(@PWPage Page page) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These app resources also need to be cleaned up when the test finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants