Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
use admin/secret
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jan 6, 2022
1 parent 7ff2bdd commit 5830a61
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Cypress.Commands.add('autologin', () => {
let api_url, user, password;
api_url = Cypress.env('API_PATH') || 'http://localhost:8080/Plone';
user = 'admin';
password = 'admin';
password = 'secret';

return cy
.request({
Expand All @@ -31,7 +31,7 @@ Cypress.Commands.add(
api_url = Cypress.env('API_PATH') || 'http://localhost:8080/Plone';
auth = {
user: 'admin',
pass: 'admin',
pass: 'secret',
};
if (contentType === 'File') {
return cy.request({
Expand Down Expand Up @@ -131,7 +131,7 @@ Cypress.Commands.add('removeContent', (path) => {
api_url = Cypress.env('API_PATH') || 'http://localhost:8080/Plone';
auth = {
user: 'admin',
pass: 'admin',
pass: 'secret',
};
return cy
.request({
Expand Down Expand Up @@ -164,7 +164,7 @@ Cypress.Commands.add(
api_url = Cypress.env('API_PATH') || 'http://localhost:8080/Plone';
auth = {
user: 'admin',
pass: 'admin',
pass: 'secret',
};
return cy.request({
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const setupBeforeEach = () => {
path: 'cypress',
});
cy.visit('/cypress/my-page');
//cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');
Expand Down
16 changes: 7 additions & 9 deletions src/components/theme/Header/HomepageSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ class HomepageSlider extends Component {
};
this.getSlides = this.getSlides.bind(this);
}

static propTypes = {
items: PropTypes.objectOf({
title: PropTypes.string,
url: PropTypes.string,
description: PropTypes.string,
}),
};

renderThumbnail = (item) => {
return (
<div className="slider-thumbnail" key={getBasePath(item.original)}>
Expand Down Expand Up @@ -149,5 +140,12 @@ class HomepageSlider extends Component {
);
}
}
HomepageSlider.propTypes = {
items: PropTypes.shape({
title: PropTypes.string,
url: PropTypes.string,
description: PropTypes.string,
}),
};

export default HomepageSlider;

0 comments on commit 5830a61

Please sign in to comment.