Skip to content

Instantly share code, notes, and snippets.

@ddikodroid
Forked from xiongemi/app.spec.ts
Created November 14, 2022 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddikodroid/e6677a9b7bee9ed598485cff98156987 to your computer and use it in GitHub Desktop.
Save ddikodroid/e6677a9b7bee9ed598485cff98156987 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