UNCLASSIFIED

Commit b1396df3 authored by Micah Nagel's avatar Micah Nagel 💰
Browse files

update?

parent 94c4d768
Pipeline #451048 failed with stages
in 4 minutes and 20 seconds
...@@ -41,25 +41,19 @@ describe('Mattermost Healthcheck', function() { ...@@ -41,25 +41,19 @@ describe('Mattermost Healthcheck', function() {
cy.title().should('include', 'Town Square - Big Bang') cy.title().should('include', 'Town Square - Big Bang')
} }
}) })
})
it('should allow chatting', function() {
cy.wait(500)
cy.get("body").then($body => {
if ($body.find('button[class="NextStepsView__button"]').length > 0) {
cy.get('button[class="NextStepsView__button"]').click()
}
})
cy.get("body").then($body => { cy.get("body").then($body => {
if ($body.find('span[class="closeIcon"]').length > 0) { if ($body.find('button[class="SidebarNextSteps__close"]').length > 0) {
cy.get('span[class="closeIcon"]').click() cy.get('button[class="SidebarNextSteps__close"]').click()
} }
}) })
cy.get("body").then($body => { cy.get("body").then($body => {
if ($body.find('button[class="confirm"]').length > 0) { if ($body.find('span[class="confirm"]').length > 0) {
cy.get('button[class="confirm"]').click() cy.get('span[class="confirm"]').click()
} }
}) })
})
it('should allow chatting', function() {
let randomChat = "Hello " + Math.random().toString(36).substring(8); let randomChat = "Hello " + Math.random().toString(36).substring(8);
cy.get('textarea[id="post_textbox"]').type(randomChat).type('{enter}') cy.get('textarea[id="post_textbox"]').type(randomChat).type('{enter}')
cy.reload() cy.reload()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment