This repository was archived by the owner on Nov 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/routes/safe/components/Apps Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -163,3 +163,15 @@ jobs:
163163 SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
164164 SENTRY_ORG : ${{ secrets.SENTRY_ORG }}
165165 SENTRY_PROJECT : ${{ secrets.SENTRY_PROJECT }}
166+ e2e :
167+ runs-on : ubuntu-20.04
168+ name : E2E on Chrome
169+ needs : deploy
170+ steps :
171+ - uses : actions/checkout@v2
172+ - uses : cypress-io/github-action@v2
173+ with :
174+ spec : cypress/integration/smoke/*.spec.js
175+ browser : chrome
176+ record : false
177+ config : baseUrl=https://pr${{ github.event.number }}--safereact.review-safe.gnosisdev.com/app/
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ class AppCommunicator {
4343 return true
4444 }
4545
46- // @ts -expect-error .parent doesn't exist on some possible types
47- const sentFromIframe = msg . source . parent === window . parent
46+ const sentFromIframe = this . iframeRef . current ?. contentWindow === msg . source
4847 const knownMethod = Object . values ( Methods ) . includes ( msg . data . method )
4948
5049 return sentFromIframe && knownMethod
You can’t perform that action at this time.
0 commit comments