-
-
Save ddikodroid/e6677a9b7bee9ed598485cff98156987 to your computer and use it in GitHub Desktop.
stater e2e test StudioGhibliSearchEngineApp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { device, element, by, expect } from 'detox'; | |
describe('StudioGhibliSearchEngineApp', () => { | |
beforeEach(async () => { | |
await device.reloadReactNative(); | |
}); | |
it('should display heading', async () => { | |
await waitFor(element(by.id('search-page'))).toBeVisible().withTimeout(5000); | |
await expect(element(by.id('heading'))).toBeVisible(); | |
await expect(element(by.id('heading'))).toHaveText( | |
'Studio Ghibli Search Engine' | |
); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment