From 72c90901677c23bd175e446ef7fa8d4aa7a34776 Mon Sep 17 00:00:00 2001 From: Benjamin Cabanes <3447705+bcabanes@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:32:35 -0500 Subject: [PATCH] test(detox): fix assertion (#8002) --- .cz-config.js | 1 + .../application/files/app/src/app.spec.ts.template | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.cz-config.js b/.cz-config.js index 1c658311d4f04..8fd44e6b25371 100644 --- a/.cz-config.js +++ b/.cz-config.js @@ -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' }, diff --git a/packages/detox/src/generators/application/files/app/src/app.spec.ts.template b/packages/detox/src/generators/application/files/app/src/app.spec.ts.template index 30bc1f0aa9671..7c0d02b65a506 100644 --- a/packages/detox/src/generators/application/files/app/src/app.spec.ts.template +++ b/packages/detox/src/generators/application/files/app/src/app.spec.ts.template @@ -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 %> 👋'); }); });