Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Composer/cypress/integration/Breadcrumb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ context('breadcrumb', () => {

// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});

Expand All @@ -29,7 +29,7 @@ context('breadcrumb', () => {

// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});

hasBreadcrumbItems(cy, ['__TestTodoSample']);
Expand Down
4 changes: 2 additions & 2 deletions Composer/cypress/integration/CreateNewBot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ context('Creating a new bot', () => {
cy.findByTestId('NextStepButton').click();
cy.enterTextAndSubmit('NewDialogName', '__TestNewProject', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestNewProject').should('exist');
cy.findAllByText('__TestNewProject').should('exist');
});
});

Expand All @@ -25,7 +25,7 @@ context('Creating a new bot', () => {
cy.findByTestId('NextStepButton').click();
cy.enterTextAndSubmit('NewDialogName', '__TestNewProject2', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestNewProject2').should('exist');
cy.findAllByText('__TestNewProject2').should('exist');
cy.findByText('addtodo').should('exist');
cy.findByText('cleartodos').should('exist');
cy.findByText('deletetodo').should('exist');
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/LGPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ context('LG Page', () => {

// nav to Main dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});
});
2 changes: 1 addition & 1 deletion Composer/cypress/integration/LUPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ context('LU Page', () => {

// nav to ToDoBotWithLuisSample.main dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestToDoBotWithLuisSample').click('left');
cy.findAllByText('__TestToDoBotWithLuisSample').last().click('left');
});
cy.findByTestId('showcode').as('switchButton');
// goto edit-mode
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/NotificationPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ context('Notification Page', () => {
cy.visitPage('User Input');

cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestToDoBotWithLuisSample').click();
cy.findAllByText('__TestToDoBotWithLuisSample').last().click();
});

cy.findByTestId('showcode').click();
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/SaveAs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ context('Saving As', () => {
cy.findByText('Save as').click();
cy.enterTextAndSubmit('NewDialogName', '__TestSaveAs', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestSaveAs').should('exist');
cy.findAllByText('__TestSaveAs').should('exist');
});
});
});
4 changes: 2 additions & 2 deletions Composer/cypress/integration/ToDoBot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ context('ToDo Bot', () => {

it('can open the main dialog', () => {
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
cy.withinEditor('PropertyEditor', () => {
cy.findByDisplayValue('__TestTodoSample').should('exist');
cy.findAllByDisplayValue('__TestTodoSample').should('exist');
});
});

Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/VisualDesigner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('Visual Designer', () => {
cy.createBot('TodoSample');
// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});

Expand Down