screenshot-testing-vite
v0.0.82
Published
screenshot-testing-vite
Downloads
1
Readme
��#� �s�c�r�e�e�n�s�h�o�t�-�t�e�s�t�i�n�g�-�v�i�t�e�
�
�
�
�#�#�#�#� �L�i�b�r�a�r�y� �f�o�r� �s�c�r�e�e�n�s�h�o�t� �t�e�s�t�i�n�g� �o�f� �t�h�e� �c�o�m�p�o�n�e�n�t� �b�a�s�e�d� �o�n� �p�l�a�y�w�r�i�g�h�t�,� �r�e�a�c�t�,� �v�i�t�e�
�
�#�#� �G�e�t� �s�t�a�r�t�e�d�
�
�
�
��
��S�h�e�l�l�
�
�n�p�m� �i�n�s�t�a�l�l� �s�c�r�e�e�n�s�h�o�t�-�t�e�s�t�i�n�g�-�l�i�b�r�a�r�y� �r�e�g�-�c�l�i� �o�p�e�n�-�c�l�i� �-�D�
�
�
�
�y�a�r�n� �a�d�d� �s�c�r�e�e�n�s�h�o�t�-�t�e�s�t�i�n�g�-�l�i�b�r�a�r�y� �r�e�g�-�c�l�i� �o�p�e�n�-�c�l�i� �-�D�
�
�
��
�
�
�
�
�#�#�#�#� �P�r�e�d�i�c�t�i�o�n�
�
�I�f� �y�o�u� �w�a�n�t� �t�o� �u�s�e� �c�u�s�t�o�m� �s�e�t�t�i�n�g�s� �t�o� �c�r�e�a�t�e� �s�c�r�e�e�n�s�h�o�t�s�,� �u�p�d�a�t�e� �y�o�u�r� �p�a�c�k�a�g�e�.�j�s�o�n�
�
��
��j�s�o�n�
�
� � �{�
�
� � � � � � �"�s�c�r�i�p�t�s�"�:� �{�
�
� � � � � � � � �"�s�h�o�o�t�"�:� �"�n�o�d�e� �.�/�s�c�r�i�p�t�s�/�g�e�n�e�r�a�t�e�-�s�c�r�e�e�n�s�h�o�t�s�.�m�j�s�"�
�
� � � � � � �}�
�
� � �}�
�
�
��
�
�
�
�
�T�h�e�n� �c�r�e�a�t�e� �t�h�e� �f�i�l�e� ��
��.�/�s�c�r�i�p�t�s�/�g�e�n�e�r�a�t�e�-�s�c�r�e�e�n�s�h�o�t�s�.�m�j�s�
��
�
�
�
�
��
��j�s�
�
�i�m�p�o�r�t� �{�g�e�n�e�r�a�t�e�S�c�r�e�e�n�s�h�o�t�s�}� �f�r�o�m� �"�s�c�r�e�e�n�s�h�o�t�-�t�e�s�t�i�n�g�-�v�i�t�e�/�l�i�b�/�g�e�n�e�r�a�t�e�-�s�c�r�e�e�n�s�h�o�t�.�m�j�s�"�;�
�
�
�
�g�e�n�e�r�a�t�e�S�c�r�e�e�n�s�h�o�t�s�(�{�
�
� � � � �f�i�l�e�P�a�t�h�P�a�t�t�e�r�n�:� �
���/�*�.�a�.�s�t�o�r�i�e�s�.�{�j�s�,�j�s�x�,�t�s�,�t�s�x�}��,� �/�/� �r�e�w�r�i�t�e� �f�i�l�e� �p�a�t�t�e�r�n�
�
� � � � �v�i�e�w�p�o�r�t�s�:� �[�
�
� � � � � � � � �[�'�i�P�h�o�n�e�_�S�E�'�,� �{�v�i�e�w�p�o�r�t�:� �{�h�e�i�g�h�t�:� �6�6�7�,� �w�i�d�t�h�:� �3�7�5�}�}�]�,�
�
� � � � � � � � �[�'�G�A�L�A�X�Y�_�S�8�_�p�l�u�s�'�,� �{�v�i�e�w�p�o�r�t�:� �{�h�e�i�g�h�t�:� �7�4�0�,� �w�i�d�t�h�:� �3�6�0�}�}�]�,�
�
� � � � � � � � �[�'�D�E�S�K�T�O�P�'�,� �{�v�i�e�w�p�o�r�t�:� �{�h�e�i�g�h�t�:� �1�0�8�0�,� �w�i�d�t�h�:� �1�9�2�0�}�}�]�,�
�
� � � � � � � � �[�'�l�a�p�t�o�p�'�,� �{�v�i�e�w�p�o�r�t�:� �{�h�e�i�g�h�t�:� �7�6�8�,� �w�i�d�t�h�:� �1�3�6�6�}�}�]�,�
�
� � � � � � � � �[�'�i�P�a�d�_�m�i�n�i�'�,� �{�v�i�e�w�p�o�r�t�:� �{�h�e�i�g�h�t�:� �1�0�2�4�,� �w�i�d�t�h�:� �7�6�8�}�}�]�
�
� � � � �]�,� �/�/� �d�e�f�a�u�l�t� �v�a�l�u�e�s� �o�f� �d�e�v�i�c�e�s�
�
�}�)�
�
�
��
�
�
�A�n�d� �t�h�e�n� �u�s�e� ��
��y�a�r�n� �s�h�o�o�t�
��
�
�
�
�
�#�#�#�#� �F�i�r�s�t� �s�t�a�r�t�
�
��
��S�h�e�l�l�
�
�s�t�v�-�c�l�i� �c�l�e�a�r� �#� �U�s�e� �t�h�i�s� �c�o�m�m�a�n�d� �p�r�i�m�a�r�i�l�y� �t�o� �i�n�i�t�i�a�l�i�z�e� �f�o�l�d�e�r�s�.�
�
� �
�
�#� �G�e�n�e�r�a�t�e� �s�c�r�e�e�n�s�h�o�t�s�,� �c�o�m�p�a�r�e� �t�h�e�m� �a�n�d� �c�r�e�a�t�e� �a� �r�e�p�o�r�t�
�
�s�t�v�-�c�l�i� �f�l�o�w� �
�
�#� �o�r�
�
�y�a�r�n� �s�h�o�o�t�
�
�s�t�v�-�c�l�i� �c�o�m�p�a�r�e� �
�
�
�
�s�t�v�-�c�l�i� �a�p�p�r�o�v�e� �#� �A�p�p�r�o�v�e� �'�a�c�t�u�a�l�'� �t�o� �'�e�x�p�e�c�t�e�d�'�
�
�
��
�
�
�
�
�T�h�e�n� �y�o�u� �c�a�n� �m�a�t�c�h� �y�o�u�r� �s�c�r�e�e�n�s�h�o�t�s�.�
�
��
��S�h�e�l�l�
�
� � �s�t�v�-�c�l�i� �f�l�o�w� �
�
� � �#� �o�r� �i�f� �y�o�u� �d�o�n�'�t� �u�s�e� �t�h�e� �d�e�f�a�u�l�t� �c�o�n�f�i�g� �t�o� �g�e�n�e�r�a�t�e� �s�c�r�e�e�n�s�h�o�t�s�
�
� � �y�a�r�n� �s�h�o�o�t�
�
� � �s�t�v�-�c�l�i� �c�o�m�p�a�r�e� �
�
� � �
�
� � �s�t�v�-�c�l�i� �a�p�p�r�o�v�e� �#� �A�p�p�r�o�v�e� �'�a�c�t�u�a�l�'� �t�o� �'�e�x�p�e�c�t�e�d�'�
�
�
��
�
�
�
�
�#�#�#� �W�a�t�c�h� �t�h�e� �d�i�f�f�e�r�e�n�c�e� �b�e�t�w�e�e�n� �s�c�r�e�e�n�s�h�o�t�s�
�
�
�
�T�o� �v�i�e�w� �s�c�r�e�e�n�s�h�o�t�s� �c�o�m�f�o�r�t�a�b�l�y�,� �u�p�d�a�t�e� �y�o�u�r� �p�a�c�k�a�g�e�.�j�s�o�n�
�
��
��j�s�o�n�
�
� � �{�
�
� � � � � � �"�s�c�r�i�p�t�s�"�:� �{�
�
� � � � � � � � �"�s�t�v�:�r�e�p�o�r�t�"�:� �"�r�e�g�-�c�l�i� �-�-�f�r�o�m� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�j�s�o�n� �-�-�r�e�p�o�r�t� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�h�t�m�l�"�,�
�
� � � � � � � � �"�s�t�v�:�o�p�e�n�"�:� �"�y�a�r�n� �r�u�n� �s�c�r�:�r�e�p�o�r�t� �&�&� �o�p�e�n�-�c�l�i� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�h�t�m�l�"�
�
� � � � � � �}�
�
� � �}�
�
�
��
�
�
�
�
�Y�o�u� �c�a�n� �a�l�s�o� �c�o�m�b�i�n�e� �s�c�r�i�p�t�s� �t�o� �u�s�e� �i�t� �a�l�l� �i�n� �o�n�e� �c�l�i�c�k�
�
��
��j�s�o�n� �l�i�n�e�s�
�
� � �{�
�
� � � � � � �"�s�c�r�i�p�t�s�"�:� �{�
�
� � � � � � � � �"�s�t�v�:�r�e�p�o�r�t�"�:� �"�r�e�g�-�c�l�i� �-�-�f�r�o�m� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�j�s�o�n� �-�-�r�e�p�o�r�t� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�h�t�m�l�"�,�
�
� � � � � � � � �"�s�t�v�:�o�p�e�n�"�:� �"�y�a�r�n� �r�u�n� �s�c�r�:�r�e�p�o�r�t� �&�&� �o�p�e�n�-�c�l�i� �s�c�r�e�e�n�s�h�o�t�s�/�r�e�p�o�r�t�.�h�t�m�l�"�,�
�
�
�
� � � � � � � � �"�s�h�o�o�t�"�:� �"�n�o�d�e� �.�/�s�c�r�i�p�t�s�/�g�e�n�e�r�a�t�e�-�s�c�r�e�e�n�s�h�o�t�s�.�m�j�s�"�,� �/�/� �i�f� �y�o�u� �a�r�e� �u�s�i�n�g� �a� �c�u�s�t�o�m� �c�o�n�f�i�g�
�
� � � � � � � � �"�s�t�v�:�f�l�o�w�"�:� �"�y�a�r�n� �s�h�o�o�t� �&�&� �y�a�r�n� �s�t�v�:�o�p�e�n�"�,�
�
� � � � � � � � �/�/�o�r�
�
� � � � � � � � �"�s�t�v�:�f�l�o�w�"�:� �"�s�t�v�-�c�l�i� �s�h�o�o�t� �&�&� �y�a�r�n� �s�t�v�:�o�p�e�n�"� �/�/� �i�f� �y�o�u� �a�r�e� �u�s�i�n�g� �a� �d�e�f�a�u�l�t� �c�o�n�f�i�g�
�
� � � � � � �}�
�
� � �}�
�
�
��
�
�
�
�
�#�#� �C�o�m�m�a�n�d�s�
�
��
��S�h�e�l�l�
�
�s�t�v�-�c�l�i� �c�l�e�a�r� �#� �C�l�e�a�r� �f�o�l�d�e�r� �s�c�r�e�e�n�s�h�o�t�s�.� �U�s�e� �t�h�i�s� �c�o�m�m�a�n�d� �p�r�i�m�a�r�i�l�y� �t�o� �i�n�i�t�i�a�l�i�z�e� �f�o�l�d�e�r�s�.�
�
�s�t�v�-�c�l�i� �s�h�o�o�t� �#� �G�e�n�e�r�a�t�e� �s�c�r�e�e�n�s�h�o�t�s� �a�n�d� �p�u�t� �i�n� �t�o� �t�h�e� �'�a�c�t�u�a�l�'�
�
�s�t�v�-�c�l�i� �c�o�m�p�a�r�e� �#� �M�a�t�c�h� �P�N�G�s� �f�r�o�m� �'�a�c�t�u�a�l�'� �a�n�d� �'�e�x�p�e�c�t�e�d�'�.� �G�e�n�e�r�a�t�e� �r�e�p�o�r�t�.�
�
�s�t�v�-�c�l�i� �a�p�p�r�o�v�e� �#� �A�p�p�r�o�v�e� �'�a�c�t�u�a�l�'� �t�o� �'�e�x�p�e�c�t�e�d�'�
�
�s�t�v�-�c�l�i� �f�l�o�w� �#� �G�e�n�e�r�a�t�e� �s�c�r�e�e�n�s�h�o�t�s�,� �c�o�m�p�a�r�e� �t�h�e�m� �a�n�d� �c�r�e�a�t�e� �a� �r�e�p�o�r�t�
�
�
��
�
�
�