You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just setting up Detox and user error is possible... that being said, I think I'm doing this right. I have a TextInput element with both accessibilityLabel and testID set to email. However, detox cannot find UI element with by.id or by.label. The curious part is, I can find my identifier in xcode's view hierarchy. I'm not sure where to go from here? I've attached screenshots of the view hierarchy. Opening a ticket because 1: this could be an actual bug. 2: if it's not a bug and I'm doing something wrong, debugging strategies should be documented if you are able to see your identifier in the view hierarchy but not get it in the detox tests
Steps to Reproduce
As you can see, I'm attempting with both by.label and by.idMy test is:
describe('Boot and #', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should have welcome screen', async () => {
await expect(element(by.label('Login'))).toBeVisible();
});
it('should show login screen after tap', async () => {
await element(by.label('Login')).tap();
await expect(element(by.label('login-signin'))).toBeVisible();
});
it('should # and land on the homepage', async () => {
await expect(element(by.label('email'))).toBeVisible();
await element(by.label('email')).typeText('email@email.com');
await element(by.label('password')).typeText('aaaaaa');
await element(by.label('# button')).tap();
await expect(element(by.label('HOME'))).toBeVisible();
});
it('should # and land on the homepage', async () => {
await expect(element(by.id('email'))).toBeVisible();
await element(by.id('email')).typeText('email@email.com');
await element(by.id('password')).typeText('aaaaaa');
await element(by.id('# button')).tap();
await expect(element(by.id('HOME'))).toBeVisible();
});
});
I don't know if it might help someone, but I had the same issue - and turns up that my simulator was not being updated with the new bundle... I had to turn it off and rub the build again to make it work :/
wix
locked and limited conversation to collaborators
Jul 23, 2018
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
Description
I am just setting up Detox and user error is possible... that being said, I think I'm doing this right. I have a TextInput element with both accessibilityLabel and testID set to email. However, detox cannot find UI element with by.id or by.label. The curious part is, I can find my identifier in xcode's view hierarchy. I'm not sure where to go from here? I've attached screenshots of the view hierarchy. Opening a ticket because 1: this could be an actual bug. 2: if it's not a bug and I'm doing something wrong, debugging strategies should be documented if you are able to see your identifier in the view hierarchy but not get it in the detox tests
Steps to Reproduce
As you can see, I'm attempting with both by.label and by.idMy test is:
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: