diff --git a/Composer/cypress/integration/LUPage.spec.ts b/Composer/cypress/integration/LUPage.spec.ts index f989d4dce7..950e35157a 100644 --- a/Composer/cypress/integration/LUPage.spec.ts +++ b/Composer/cypress/integration/LUPage.spec.ts @@ -14,10 +14,7 @@ context('LU Page', () => { cy.contains('ToDoBotWithLuisSample.Main'); cy.contains('All'); - cy.get('.toggleEditMode button').as('switchButton'); - - // all multiple file, edit mode button is disabled. - cy.get('@switchButton').should('be.disabled'); + cy.get('.toggleEditMode button').should('not.exist'); // by default is table view cy.findByTestId('LUEditor') @@ -28,7 +25,7 @@ context('LU Page', () => { cy.findByTestId('LUEditor').within(() => { cy.findByText('__TestToDoBotWithLuisSample.Main').click(); }); - + cy.get('.toggleEditMode button').as('switchButton'); // goto edit-mode cy.get('@switchButton').click(); cy.findByTestId('LUEditor') diff --git a/Composer/packages/client/src/pages/language-understanding/index.tsx b/Composer/packages/client/src/pages/language-understanding/index.tsx index 960a8730a7..95ee7bd2da 100644 --- a/Composer/packages/client/src/pages/language-understanding/index.tsx +++ b/Composer/packages/client/src/pages/language-understanding/index.tsx @@ -91,16 +91,17 @@ const LUPage: React.FC = props => {
{formatMessage('User Input')}
- + {(!isRoot || edit) && ( + + )}