UNCLASSIFIED

Commit 5fbb14e6 authored by Micah Nagel's avatar Micah Nagel 💰
Browse files

why does this work?

parent 81175ccd
Pipeline #451382 passed with stages
in 4 minutes and 33 seconds
...@@ -41,19 +41,19 @@ describe('Mattermost Healthcheck', function() { ...@@ -41,19 +41,19 @@ describe('Mattermost Healthcheck', function() {
cy.title().should('include', 'Town Square - Big Bang') cy.title().should('include', 'Town Square - Big Bang')
} }
}) })
cy.get("body").then($body => {
if ($body.find('button[class="SidebarNextSteps__close"]').length > 0) {
cy.get('button[class="SidebarNextSteps__close"]').click()
cy.get('button[type="submit"] > span').contains("Remove").click()
}
})
}) })
it('should allow chatting', function() { it('should allow chatting', function() {
// Click between channels to dodge the tutorial if it exists
cy.get('span[class="SidebarChannelLinkLabel"]').contains("Off-Topic").click()
cy.get('span[class="SidebarChannelLinkLabel"]').contains("Town Square").click()
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) cy.get('textarea[id="post_textbox"]').type(randomChat).type('{enter}')
cy.get('textarea[id="post_textbox"]').type('{enter}')
cy.reload() cy.reload()
// Click between channels to dodge the tutorial if it exists
cy.get('span[class="SidebarChannelLinkLabel"]').contains("Off-Topic").click()
cy.get('span[class="SidebarChannelLinkLabel"]').contains("Town Square").click()
cy.get('p').contains(randomChat).should('be.visible') cy.get('p').contains(randomChat).should('be.visible')
}) })
......
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