-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
test: GitSyncedApps_spec - multiple IA changes #33257
Changes from 7 commits
a02fd24
fb27b3b
060a409
54e61a5
278f9ae
278afd4
9036a43
7d8517d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ import EditorNavigation, { | |
EntityType, | ||
} from "./EditorNavigation"; | ||
import { EntityItems } from "./AssertHelper"; | ||
|
||
import { PAGE_ENTITY_NAME } from "../../../src/ce/constants/messages"; | ||
class PageList { | ||
private locators = { | ||
pageListItem: (pageName: string) => | ||
|
@@ -15,6 +15,8 @@ class PageList { | |
switcher: `.t--pages-switcher`, | ||
}; | ||
|
||
public DefaultPageName = PAGE_ENTITY_NAME + "1"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cant you just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes done! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @trishaanand i don't think we can do this. i am getting an error regarding dependecy https://github.com/appsmithorg/appsmith-ee/actions/runs/9000139783/job/24724479656 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
|
||
public AddNewPage( | ||
option: | ||
| "New blank page" | ||
|
@@ -50,7 +52,7 @@ class PageList { | |
this.HideList(); | ||
} | ||
|
||
public ClonePage(pageName = "Page1") { | ||
public ClonePage(pageName = this.DefaultPageName) { | ||
AppSidebar.navigate(AppSidebarButton.Editor); | ||
EditorNavigation.SelectEntityByName(pageName, EntityType.Page); | ||
ObjectsRegistry.EntityExplorer.ActionContextMenuByEntityName({ | ||
|
@@ -113,6 +115,16 @@ class PageList { | |
this.HideList(); | ||
} | ||
|
||
public HidePage(pageName = this.DefaultPageName) { | ||
AppSidebar.navigate(AppSidebarButton.Editor); | ||
EditorNavigation.SelectEntityByName(pageName, EntityType.Page); | ||
ObjectsRegistry.EntityExplorer.ActionContextMenuByEntityName({ | ||
entityNameinLeftSidebar: pageName, | ||
action: "Hide", | ||
entityType: EntityItems.Page, | ||
}); | ||
} | ||
|
||
assertAbsenceOfAddPage() { | ||
this.ShowList(); | ||
ObjectsRegistry.AggregateHelper.AssertElementAbsence( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you have almost rewitten the test can we make these 2 changes
"inputWidget": ".t--draggable-inputwidgetv2" —> available within Widget.json file
"dataclass": ".bp3-input" —> available in Widget.json file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NandanAnantharamu sure makes sense! can you share the file please here. i failed to find these