support: Take screenshot after #grw-tag-labels is visible for VRT normalization
@@ -25,7 +25,7 @@ const TagLabels:FC<Props> = (props: Props) => {
return (
<>
- <form className="grw-tag-labels form-inline">
+ <form className="grw-tag-labels form-inline" data-testid="grw-tag-labels">
<i className="tag-icon icon-tag mr-2"></i>
{ tags == null
? (
@@ -272,6 +272,7 @@ context('Tag Oprations', () =>{
});
cy.visit(`/${newPageName}`);
+ cy.getByTestid('grw-tag-labels').should('be.visible');
cy.screenshot(`${ssPrefix}4-new-page-name-applied`, {capture: 'viewport'});