فهرست منبع

Merge pull request #6615 from weseek/support/fix-rename-fot-tag-operation

support: Take screenshot after #grw-tag-labels is visible for VRT normalization
Yohei Shiina 3 سال پیش
والد
کامیت
4fa2f6bfcc

+ 1 - 1
packages/app/src/components/Page/TagLabels.tsx

@@ -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
           ? (

+ 1 - 0
packages/app/test/cypress/integration/20-basic-features/use-tools.spec.ts

@@ -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'});
   });