Skip to content

Commit

Permalink
Create login.e2e.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent 968da11 commit ec22b17
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/tests/unit_test/login.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { device, expect } from 'detox';

describe('Login', () => {
beforeEach(async () => {
await device.reloadReactNative();
});

it('logs in successfully', async () => {
await element(by.id('username')).typeText('username');
await element(by.id('password')).typeText('password');
await element(by.id('loginButton')).tap();
await expect(element(by.id('walletScreen'))).toBeVisible();
});
});

0 comments on commit ec22b17

Please sign in to comment.