Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d41ecc50 authored by Baptiste Billard's avatar Baptiste Billard
Browse files

Record/verify tasks issue

parent c3179f5b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ public class ExampleScreenshotTest {
     */
    LayoutInflater inflater = LayoutInflater.from(getApplicationContext());  //removed the first argument getInstrumentation(),
    getApplicationContext().setTheme(R.style.AppTheme);
    android.view.View view = inflater.inflate(R.layout.activity_notes_list_view, null, false);
    android.view.View view = inflater.inflate(R.layout.activity_account, null, false);

    /*
     * Measure and layout the view. In this example we give an exact
+7 −0
Original line number Diff line number Diff line
# **Problem with the record/verify method**
The classical use of Facebook screenshot testing is the following:
* run the **_record_** task after an update which modifies the view you test to generate a new screenshot to be compared later
* run the **_verify_** task after an update which is not supposed to modify the view in order to see if it's the case: if a difference is detected between this new screenshot and the one saved, the test should fail.

The problem is that when I run the **_record_** task, then modify some margin and run the **_verify_** task, I do obtain differences when I pull the screenshots, but no exception is thrown. 
See the reports of the two views generated: *record_verify_issue_screenshot_1.png* and *record_verify_issue_screenshot_2.png*.
+136 KiB
Loading image diff...
+137 KiB
Loading image diff...