Skip to content

Commit

Permalink
fix: update e2e test urls
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Jul 9, 2024
1 parent eb249f5 commit 462c190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/VirtualAssistant.spec.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe('Test the Virtual assistant docs page', () => {

it('renders listening to messages', () => {
cy.visit('http://localhost:8006/extensions/virtual-assistant/virtual-assistant');
cy.visit('http://localhost:8006/extensions/chat-bots--ai/virtual-assistant');
cy.wait(1000);

cy.get('[data-test-id="assistant-example-message"]').should('contain', 'Last received message: ');
Expand All @@ -11,10 +11,10 @@ describe('Test the Virtual assistant docs page', () => {
})

it('renders header with actions', () => {
cy.visit('http://localhost:8006/extensions/virtual-assistant/virtual-assistant', { onBeforeLoad: (win) => {cy.stub(win.console, 'log').as('consoleLog');} });
cy.visit('http://localhost:8006/extensions/chat-bots--ai/virtual-assistant', { onBeforeLoad: (win) => {cy.stub(win.console, 'log').as('consoleLog');} });
cy.wait(1000);
cy.get('[aria-label="Minimize virtual assistant"]').click({ force: true });
cy.wait(1000);
cy.get('@consoleLog').should('be.calledWith', 'Minimize button clicked');
})
})
})

0 comments on commit 462c190

Please sign in to comment.