diff --git a/src/v4/social/elements/CreateNewPostButton/CreateNewPostButton.tsx b/src/v4/social/elements/CreateNewPostButton/CreateNewPostButton.tsx
index 0c2757c3..200bb20d 100644
--- a/src/v4/social/elements/CreateNewPostButton/CreateNewPostButton.tsx
+++ b/src/v4/social/elements/CreateNewPostButton/CreateNewPostButton.tsx
@@ -16,7 +16,7 @@ export function CreateNewPostButton({
onSubmit,
}: CreateNewPostButtonProps) {
const elementId = 'create_new_post_button';
- const { config, isExcluded, themeStyles } = useAmityElement({
+ const { config, isExcluded, themeStyles, accessibilityId } = useAmityElement({
pageId,
componentId,
elementId,
@@ -30,6 +30,7 @@ export function CreateNewPostButton({
disabled={!isValid}
className={styles.createNewPostButton}
type="submit"
+ data-qa-anchor={accessibilityId}
>
{config.text}
diff --git a/src/v4/social/elements/EditPostButton/EditPostButton.tsx b/src/v4/social/elements/EditPostButton/EditPostButton.tsx
index cc62b1f8..32e3ea05 100644
--- a/src/v4/social/elements/EditPostButton/EditPostButton.tsx
+++ b/src/v4/social/elements/EditPostButton/EditPostButton.tsx
@@ -10,7 +10,7 @@ type EditPostButtonProps = ButtonProps & {
export function EditPostButton({ pageId = '*', componentId = '*', ...props }: EditPostButtonProps) {
const elementId = 'edit_post_button';
- const { config, isExcluded, themeStyles } = useAmityElement({
+ const { config, isExcluded, themeStyles, accessibilityId } = useAmityElement({
pageId,
componentId,
elementId,
@@ -18,7 +18,12 @@ export function EditPostButton({ pageId = '*', componentId = '*', ...props }: Ed
if (isExcluded) return null;
return (
-
) : (
<>
-