Skip to content

Instantly share code, notes, and snippets.

@xiongemi
Last active November 14, 2022 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xiongemi/768601f678b9d8a612dfbc6129dceb0e to your computer and use it in GitHub Desktop.
Save xiongemi/768601f678b9d8a612dfbc6129dceb0e to your computer and use it in GitHub Desktop.
stater e2e test StudioGhibliSearchEngineApp
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