test(detox): fix assertion (#8002)

This commit is contained in:
Benjamin Cabanes 2021-12-03 18:32:35 -05:00 committed by GitHub
parent f8633d3b70
commit 72c9090167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -26,6 +26,7 @@ module.exports = {
{ name: 'nx-plugin', description: 'anything Nx Plugin specific' },
{ name: 'react', description: 'anything React specific' },
{ name: 'react-native', description: 'anything React Native specific' },
{ name: 'detox', description: 'anything Detox specific' },
{ name: 'web', description: 'anything Web specific' },
{ name: 'linter', description: 'anything Linter specific' },
{ name: 'storybook', description: 'anything Storybook specific' },

View File

@ -6,11 +6,6 @@ describe('<%= appClassName %>', () => {
});
it('should display welcome message', async () => {
await expect(element(by.id('heading'))).toHaveText('Welcome to <%= appClassName %>');
});
it('should open nx link', async () => {
await expect(element(by.id('nx-link'))).toBeVisible();
element(by.id('nx-link')).tap();
await expect(element(by.id('heading'))).toHaveText('Welcome <%= appClassName %> 👋');
});
});