-
-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into seamless_internalApiPath
- Loading branch information
Showing
50 changed files
with
592 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"name": "Using fixtures to represent data", | ||
"email": "[email protected]", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,57 +1,69 @@ | ||
describe('actions Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page-1', | ||
contentTitle: 'My Page-1', | ||
allow_discussion: true, | ||
} | ||
); | ||
cy.visit('/contents'); | ||
}); | ||
it('copy', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(2).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/copy_of_my-page-1"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/copy_of_my-page-1/contents'); | ||
}) | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page-1', | ||
contentTitle: 'My Page-1', | ||
allow_discussion: true, | ||
}); | ||
cy.visit('/contents'); | ||
}); | ||
it('copy', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(2).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/copy_of_my-page-1"]').within(() => { | ||
cy.get('a[class="icon-align-name"]').should( | ||
'have.attr', | ||
'href', | ||
'/copy_of_my-page-1/contents', | ||
); | ||
}); | ||
}); | ||
it('delete', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(6).click(); | ||
cy.get('button[class="ui primary button"]').findByText('Delete').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr').should('not.contain', '/my-page-1'); | ||
}); | ||
it('cut', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(1).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('a[class="icon-align-name"]').should( | ||
'have.attr', | ||
'href', | ||
'/my-page-1/contents', | ||
); | ||
}); | ||
}); | ||
it('rename', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(0).click(); | ||
cy.get('#field-0_title').clear().type('my-page-rename'); | ||
cy.get('#field-0_id').clear().type('my-page-rename'); | ||
cy.get( | ||
'button[class="ui basic circular primary right floated button"]', | ||
).click(); | ||
cy.get('tr[aria-label="/my-page-rename"]').within(() => { | ||
cy.get('a[class="icon-align-name"]').should( | ||
'have.attr', | ||
'href', | ||
'/my-page-rename/contents', | ||
); | ||
}); | ||
}); | ||
it('delete', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(6).click(); | ||
cy.get('button[class="ui primary button"]').findByText('Delete').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr').should('not.contain','/my-page-1'); | ||
|
||
}); | ||
it('cut', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(1).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/my-page-1"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-1/contents'); | ||
}) | ||
}); | ||
it('rename', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(0).click(); | ||
cy.get('#field-0_title').clear().type('my-page-rename'); | ||
cy.get('#field-0_id').clear().type('my-page-rename'); | ||
cy.get('button[class="ui basic circular primary right floated button"]').click(); | ||
cy.get('tr[aria-label="/my-page-rename"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-rename/contents'); | ||
}) | ||
}) | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
describe('Contact Form Tests', () => { | ||
beforeEach(() => { | ||
cy.visit('/'); | ||
}); | ||
it('renders contact Form', function () { | ||
cy.get('a:contains("Contact")').click(); | ||
cy.get('input[name="name"]').type('Myname'); | ||
cy.get('input[name="from"]').type('[email protected]'); | ||
cy.get('input[name="subject"]').type('Loreum Ipsium'); | ||
cy.get('textarea[name="message"]').type('Lorem Ipsum is simply dummy text of the printing and typesetting industry.'); | ||
|
||
|
||
cy.get('button[class="ui basic primary right floated button"]').click(); | ||
}); | ||
}); | ||
beforeEach(() => { | ||
cy.visit('/'); | ||
}); | ||
it('renders contact Form', function () { | ||
cy.get('a:contains("Contact")').click(); | ||
cy.get('input[name="name"]').type('Myname'); | ||
cy.get('input[name="from"]').type('[email protected]'); | ||
cy.get('input[name="subject"]').type('Loreum Ipsium'); | ||
cy.get('textarea[name="message"]').type( | ||
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', | ||
); | ||
|
||
cy.get('button[class="ui basic primary right floated button"]').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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,50 @@ | ||
describe('Add Content Tests', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', `/**/*?expand*`).as('content'); | ||
// give a logged in editor and the site root | ||
cy.autologin(); | ||
cy.visit('/'); | ||
cy.wait('@content'); | ||
}); | ||
|
||
it('As editor I can change the view to Listing View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Album view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
|
||
it('As editor I can change the view to Summary View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Summary view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Tabular View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Tabular view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Album View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.intercept('GET', `/**/*?expand*`).as('content'); | ||
// give a logged in editor and the site root | ||
cy.autologin(); | ||
cy.visit('/'); | ||
cy.wait('@content'); | ||
}); | ||
|
||
it('As editor I can change the view to Listing View', function () { | ||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Album view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
|
||
it('As editor I can change the view to Summary View', function () { | ||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Summary view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Tabular View', function () { | ||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Tabular view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Album View', function () { | ||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
}); |
Oops, something went wrong.