Skip to content

Commit

Permalink
fix: update DEVELOP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tayebsed93 authored Nov 19, 2024
1 parent 7fd57b9 commit 5fcdb09
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Any interface modifications require regenerating the illustrations using the too
```
2. Navigate to the project :
- Open your project in Xcode and go to the directory:
```shell
```text
Showcase -> ShowcaseTests -> OUDSTokensBorderUITests -> OUDSTokensBorderUITests.swift
```
3. Open the test tile:
Expand Down Expand Up @@ -177,7 +177,7 @@ The snapshot tool fetched the reference image to compare it against the current

- In Xcode go to :

```shell
```text
ShowcaseTests -> ShowcaseTests/ShowcaseTests
```

Expand All @@ -195,6 +195,17 @@ The snapshot tool fetched the reference image to compare it against the current

<img width="1364" alt="OpacityFailureImage" src="https://github.com/user-attachments/assets/03cfe17f-3752-4aba-a482-f89d3b89f53d">

9. Update reference iIllustrations :

Please note that if you intentionally modify the token screen, the tests will no longer work because the reference illustration will become outdated. Make sure to update the reference illustrations whenever a change is made. To do so, add the `record` parameter and set it to `true` in the `assertSnapshot` method. By default, this value is set to `false`.

After making these changes, rerun the tests to ensure everything is up to date.

Example :
```text
assertSnapshot(of: hostingVC, as: .image(traits: UITraitCollection(userInterfaceStyle: .light)), named: snapshotName, record: true)
```


## Build phases

Expand Down

0 comments on commit 5fcdb09

Please sign in to comment.