Last active
November 14, 2022 06:09
-
-
Save xiongemi/768601f678b9d8a612dfbc6129dceb0e 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