UNCLASSIFIED

Commit 8ac70b14 authored by Micah Nagel's avatar Micah Nagel 💰
Browse files

try this?

parent 1748ad45
Pipeline #451289 failed with stages
in 4 minutes and 33 seconds
......@@ -41,35 +41,12 @@ describe('Mattermost Healthcheck', function() {
cy.title().should('include', 'Town Square - Big Bang')
}
})
// Add a wait because the UI is slow to pop up sometimes
cy.wait(1000)
// Run through setup tasks if they are displayed
cy.get("body").then($body => {
if ($body.find('input[name="fullName"]').length > 0) {
cy.get('input[name="fullName"]').type("Big Bang Bot")
cy.get('button[data-testid="CompleteProfileStep__saveProfileButton"]').click()
cy.get('button[data-testid="TeamProfileStep__saveTeamButton"]').click()
cy.get('span').contains("Skip this step").click()
cy.get('button[data-testid="InviteMembersStep__finishButton"]').click()
cy.get('input[id="input_enter_support_email"]').type("help@bigbang.dev")
cy.get('button[data-testid="EnterSupportEmailStep__finishButton"]').click()
cy.get('span[id="closeIcon"]').click()
cy.wait(500)
cy.get('span').contains("Remove").click()
}
})
})
it('should allow chatting', function() {
// Wait 1 second, then check for any tutorial pages
cy.wait(1000)
cy.get("body").then($body => {
if ($body.find('span[id="closeIcon"]').length > 0) {
cy.get('span[id="closeIcon"]').click()
cy.wait(500)
cy.get('span').contains("Remove").click()
}
})
// 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);
cy.get('textarea[id="post_textbox"]').type(randomChat).type('{enter}')
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