Add chat embed automated browser tests. Closes #2743
This commit is contained in:
@@ -5,4 +5,12 @@ describe(`Offline readwrite chat embed`, () => {
|
||||
it('Can visit the page', () => {
|
||||
cy.visit('http://localhost:8080/embed/chat/readwrite');
|
||||
});
|
||||
|
||||
it('Header should be visible', () => {
|
||||
cy.get('header').should('be.visible');
|
||||
});
|
||||
|
||||
it('Chat should be visible', () => {
|
||||
cy.get('#chat-container').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,10 +3,10 @@ setup();
|
||||
|
||||
describe(`Offline read-only chat embed`, () => {
|
||||
it('Can visit the page', () => {
|
||||
cy.visit('http://localhost:8080/embed/chat/readwrite');
|
||||
cy.visit('http://localhost:8080/embed/chat/readonly');
|
||||
});
|
||||
|
||||
// it('Chat should be visible', () => {
|
||||
// cy.get('#chat-container').should('be.visible');
|
||||
// });
|
||||
it('Chat should be visible', () => {
|
||||
cy.get('#chat-container').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user