Skip to content

Commit

Permalink
[Detox] Change: Remove starter tests, add old test pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Feb 22, 2024
1 parent d76a90e commit 3cc0f45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion example/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
rootDir: '..',
testMatch: ['<rootDir>/e2e/**/*.test.js'],
testMatch: ['<rootDir>/e2e/**/*.test.js','<rootDir>/e2e/**/*.spec.js'],
testTimeout: 120000,
maxWorkers: 1,
globalSetup: 'detox/runners/jest/globalSetup',
Expand Down
14 changes: 0 additions & 14 deletions example/e2e/starter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,4 @@ describe('Example', () => {
beforeEach(async () => {
await device.reloadReactNative();
});

it('should have welcome screen', async () => {
await expect(element(by.id('welcome'))).toBeVisible();
});

it('should show hello screen after tap', async () => {
await element(by.id('hello_button')).tap();
await expect(element(by.text('Hello!!!'))).toBeVisible();
});

it('should show world screen after tap', async () => {
await element(by.id('world_button')).tap();
await expect(element(by.text('World!!!'))).toBeVisible();
});
});

0 comments on commit 3cc0f45

Please sign in to comment.