Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Dec 18, 2023
1 parent 07715c0 commit a38e91b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions cypress/e2e/chat_profiles/spec.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { runTestServer } from '../../support/testUtils';
import { runTestServer, submitMessage } from '../../support/testUtils';

describe('Chat profiles', () => {
before(() => {
Expand Down Expand Up @@ -28,7 +28,6 @@ describe('Chat profiles', () => {
// Change chat profile

cy.get('[data-test="chat-profile:GPT-4"]').click();
cy.get('#confirm').click();

cy.get('.step')
.should('have.length', 1)
Expand All @@ -48,5 +47,18 @@ describe('Chat profiles', () => {
'contain',
'starting chat with admin using the GPT-4 chat profile'
);

submitMessage('hello');
cy.get('.step').should('have.length', 2).eq(1).should('contain', 'hello');
cy.get('[data-test="chat-profile:GPT-5"]').click();
cy.get('#confirm').click();

cy.get('.step')
.should('have.length', 1)
.eq(0)
.should(
'contain',
'starting chat with admin using the GPT-5 chat profile'
);
});
});

0 comments on commit a38e91b

Please sign in to comment.