mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +02:00
Fixing cypress tests
This commit is contained in:
parent
e2648f516a
commit
87e84589ba
@ -1779,7 +1779,6 @@ func (a *API) handleUploadFile(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
file, handle, err := r.FormFile(UploadFormFileKey)
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
if strings.HasSuffix(err.Error(), "http: request body too large") {
|
||||
a.errorResponse(w, r.URL.Path, http.StatusRequestEntityTooLarge, "", err)
|
||||
return
|
||||
|
@ -7,6 +7,7 @@ describe('Card badges', () => {
|
||||
cy.apiResetBoards()
|
||||
cy.apiGetMe().then((userID) => cy.apiSkipTour(userID))
|
||||
localStorage.setItem('welcomePageViewed', 'true')
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
it('Shows and hides card badges', () => {
|
||||
|
@ -7,6 +7,7 @@ describe('Card URL Property', () => {
|
||||
cy.apiResetBoards()
|
||||
cy.apiGetMe().then((userID) => cy.apiSkipTour(userID))
|
||||
localStorage.setItem('welcomePageViewed', 'true')
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
const url = 'https://mattermost.com'
|
||||
|
@ -11,6 +11,7 @@ describe('Create and delete board / card', () => {
|
||||
cy.apiResetBoards()
|
||||
cy.apiGetMe().then((userID) => cy.apiSkipTour(userID))
|
||||
localStorage.setItem('welcomePageViewed', 'true')
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
it('MM-T4274 Create an Empty Board', () => {
|
||||
@ -29,7 +30,7 @@ describe('Create and delete board / card', () => {
|
||||
// Create empty board
|
||||
cy.contains('Create empty board').should('exist').click({force: true})
|
||||
cy.get('.BoardComponent').should('exist')
|
||||
cy.get('.Editable.title').invoke('attr', 'placeholder').should('contain', 'Untitled board')
|
||||
cy.get('.Editable.title').invoke('attr', 'placeholder').should('contain', 'Untitled Board')
|
||||
|
||||
// Change Title
|
||||
cy.get('.Editable.title').
|
||||
|
@ -7,6 +7,7 @@ describe('Group board by different properties', () => {
|
||||
cy.apiResetBoards()
|
||||
cy.apiGetMe().then((userID) => cy.apiSkipTour(userID))
|
||||
localStorage.setItem('welcomePageViewed', 'true')
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
it('MM-T4291 Group by different property', () => {
|
||||
|
@ -6,6 +6,10 @@ describe('Login actions', () => {
|
||||
const email = Cypress.env('email')
|
||||
const password = Cypress.env('password')
|
||||
|
||||
beforeEach(() => {
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
it('Can perform login/register actions', () => {
|
||||
// Redirects to login page
|
||||
cy.log('**Redirects to login page (except plugin mode) **')
|
||||
|
@ -7,6 +7,7 @@ describe('Manage groups', () => {
|
||||
cy.apiResetBoards()
|
||||
cy.apiGetMe().then((userID) => cy.apiSkipTour(userID))
|
||||
localStorage.setItem('welcomePageViewed', 'true')
|
||||
localStorage.setItem('language', 'en')
|
||||
})
|
||||
|
||||
it('MM-T4284 Adding a group', () => {
|
||||
|
@ -119,11 +119,11 @@ Cypress.Commands.add('uiCreateNewBoard', (title?: string) => {
|
||||
cy.log('**Create new empty board**')
|
||||
cy.uiCreateEmptyBoard()
|
||||
|
||||
cy.findByPlaceholderText('Untitled board').should('exist')
|
||||
cy.findByPlaceholderText('Untitled Board').should('exist')
|
||||
cy.wait(10)
|
||||
if (title) {
|
||||
cy.log('**Rename board**')
|
||||
cy.findByPlaceholderText('Untitled board').type(`${title}{enter}`)
|
||||
cy.findByPlaceholderText('Untitled Board').type(`${title}{enter}`)
|
||||
cy.findByRole('textbox', {name: title}).should('exist')
|
||||
}
|
||||
cy.wait(500)
|
||||
|
Loading…
Reference in New Issue
Block a user