-
-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-missing-translations
* master: change name of metadata and properties (#893) Move the Tile Edit wrapper one level up to the tiles engine (#895) Cypress create content type (#897) Fix file upload acceptance test (#882) Rework users controlpanel (#891) Dependencies upgrades (router, redux) (#890) User and groups control panel (#608) Add animated gifs for Volto table and toolbar to the docs. Do not run createContent cypress test on Guillotina. Use forEach instead of map in BodyClass.jsx. Remove unused getSpecialList and comment out unused ReferenceWidget import. Fail eslint check on any warnings. Add createContent cypress keyword. Fix typo in login.js acceptance test. Update the acceptance test readme.
- Loading branch information
Showing
57 changed files
with
2,391 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
if (Cypress.env('API') !== 'guillotina') { | ||
context('createContent Acceptance Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
}); | ||
|
||
it('Create document', function() { | ||
cy.createContent('Document', 'my-page', 'My Page'); | ||
cy.visit('/my-page'); | ||
cy.get('.documentFirstHeading').should('have.text', 'My Page'); | ||
cy.url().should('eq', Cypress.config().baseUrl + '/my-page'); | ||
}); | ||
it('Create document with path', function() { | ||
cy.createContent('Document', 'container', 'My Container'); | ||
cy.createContent('Document', 'child', 'My Child', '/container'); | ||
cy.visit('/container/child'); | ||
cy.get('.documentFirstHeading').should('have.text', 'My Child'); | ||
}); | ||
it('Create document with custom id', function() { | ||
cy.createContent('Document', 'my-custom-id', 'My Page'); | ||
cy.visit('/my-custom-id'); | ||
cy.get('.documentFirstHeading').should('have.text', 'My Page'); | ||
}); | ||
it('Create News Item', function() { | ||
cy.createContent('News Item', 'my-news-item', 'My News Item'); | ||
cy.visit('/my-news-item'); | ||
cy.get('.documentFirstHeading').should('have.text', 'My News Item'); | ||
}); | ||
it('Create File', function() { | ||
cy.createContent('File', 'my-file', 'My File'); | ||
cy.visit('/my-file'); | ||
cy.get('.documentFirstHeading').should('have.text', 'My File'); | ||
cy.get('.view-wrapper a').should( | ||
'have.attr', | ||
'href', | ||
'/my-file/@@download/file', | ||
); | ||
// cy.get('.view-wrapper a').click(); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.