-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35106 from appsmithorg/release
23rd July, 2024 - Daily Promotion
- Loading branch information
Showing
241 changed files
with
3,828 additions
and
1,448 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
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
91 changes: 91 additions & 0 deletions
91
...client/cypress/e2e/Regression/ClientSide/Anvil/AppTheming/AnvilAppThemingSnapshot_spec.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,91 @@ | ||
import { ANVIL_EDITOR_TEST } from "../../../../../support/Constants"; | ||
import { | ||
agHelper, | ||
anvilSnapshot, | ||
} from "../../../../../support/Objects/ObjectsCore"; | ||
|
||
describe( | ||
`${ANVIL_EDITOR_TEST}: Anvil tests for App Theming`, | ||
{ tags: ["@tag.Anvil"] }, | ||
() => { | ||
before(() => { | ||
agHelper.AddDsl("anvilAppTheming"); | ||
}); | ||
|
||
it("1. Theme - Light and Dark Mode", () => { | ||
anvilSnapshot.matchSnapshotForCanvasMode("AppTheming"); | ||
anvilSnapshot.matchSnapshotForPreviewMode("AppTheming"); | ||
anvilSnapshot.matchSnapshotForDeployMode("AppTheming"); | ||
|
||
anvilSnapshot.setTheme("dark"); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode("AppTheming", "dark"); | ||
anvilSnapshot.matchSnapshotForPreviewMode("AppTheming", "dark"); | ||
anvilSnapshot.matchSnapshotForDeployMode("AppTheming", "dark"); | ||
|
||
anvilSnapshot.setTheme("light"); | ||
}); | ||
|
||
it("2. Theme - Accent Color", () => { | ||
anvilSnapshot.setAccentColor("#d54137"); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode("AppThemingCustomAccent"); | ||
anvilSnapshot.matchSnapshotForPreviewMode("AppThemingCustomAccent"); | ||
anvilSnapshot.matchSnapshotForDeployMode("AppThemingCustomAccent"); | ||
|
||
anvilSnapshot.setAccentColor("#0080ff"); | ||
}); | ||
|
||
it("3. Typography", () => { | ||
anvilSnapshot.setTypography("Inter"); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode("AppThemingTypography"); | ||
anvilSnapshot.matchSnapshotForPreviewMode("AppThemingTypography"); | ||
anvilSnapshot.matchSnapshotForDeployMode("AppThemingTypography"); | ||
|
||
anvilSnapshot.setTypography("System Default"); | ||
}); | ||
|
||
it("4. Density", () => { | ||
["Tight", "Regular", "Loose"].forEach((density) => { | ||
anvilSnapshot.setDensity(density); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode(`AppThemingDensity${density}`); | ||
anvilSnapshot.matchSnapshotForPreviewMode( | ||
`AppThemingDensity${density}`, | ||
); | ||
anvilSnapshot.matchSnapshotForDeployMode(`AppThemingDensity${density}`); | ||
}); | ||
}); | ||
|
||
it("5. Sizing", () => { | ||
["Small", "Regular", "Big"].forEach((size) => { | ||
anvilSnapshot.setSizing(size); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode(`AppThemingSizing${size}`); | ||
anvilSnapshot.matchSnapshotForPreviewMode(`AppThemingSizing${size}`); | ||
anvilSnapshot.matchSnapshotForDeployMode(`AppThemingSizing${size}`); | ||
}); | ||
}); | ||
|
||
it("6. Corners", () => { | ||
["0px", "6px", "20px"].forEach((corner) => { | ||
anvilSnapshot.setCorners(corner); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode(`AppThemingCorner${corner}`); | ||
anvilSnapshot.matchSnapshotForPreviewMode(`AppThemingCorner${corner}`); | ||
anvilSnapshot.matchSnapshotForDeployMode(`AppThemingCorner${corner}`); | ||
}); | ||
}); | ||
|
||
it("7. Icon Style", () => { | ||
["Filled", "Outlined"].forEach((iconStyle) => { | ||
anvilSnapshot.setIconStyle(iconStyle); | ||
|
||
anvilSnapshot.matchSnapshotForCanvasMode(`AppThemingIcon${iconStyle}`); | ||
anvilSnapshot.matchSnapshotForPreviewMode(`AppThemingIcon${iconStyle}`); | ||
anvilSnapshot.matchSnapshotForDeployMode(`AppThemingIcon${iconStyle}`); | ||
}); | ||
}); | ||
}, | ||
); |
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
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
Oops, something went wrong.