Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBatdorf committed Sep 29, 2024
1 parent 536825b commit d6e7630
Show file tree
Hide file tree
Showing 9 changed files with 13,656 additions and 5,043 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/extra-settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ context('Extra Settings', () => {
.should('contain', '<script>&lt;</script>');
});

it.only('Escapes WordPress shortcodes', () => {
it('Escapes WordPress shortcodes', () => {
cy.openSideBarPanel('Extra Settings');
cy.get('[data-cy="use-escape-shortcodes"]')
.should('exist')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/themes.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ context('Theme checks', () => {
cy.openSideBarPanel('Theme');
cy.get('div[aria-label="Editor settings"] button')
.contains('Theme')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('bottom');
cy.get('#code-block-pro-theme-nord').should('exist');
cy.get('[data-cy="manage-themes"]').should('exist').click();
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/features/footers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const setFooter = (footer) => {
cy.openSideBarPanel('Footer Type');
cy.get('div[aria-label="Editor settings"] button')
.contains('Footer Type')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('bottom');
cy.get(`#code-block-pro-footer-${footer}`).should('exist');
cy.get(`#code-block-pro-footer-${footer}`).click();
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/features/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const setHeader = (header) => {
cy.openSideBarPanel('Header Type');
cy.get('div[aria-label="Editor settings"] button')
.contains('Header Type')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('bottom');
cy.get(`#code-block-pro-header-${header}`).should('exist');
cy.get(`#code-block-pro-header-${header}`).click();
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/features/height.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const setHeightDesign = (height) => {
cy.openSideBarPanel('Max Height');
cy.get('div[aria-label="Editor settings"] button')
.contains('Max Height')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('bottom');
cy.get(`#code-block-pro-see-more-${height}`).should('exist');
cy.get(`#code-block-pro-see-more-${height}`).click();
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/features/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export const setTheme = (theme) => {
cy.openSideBarPanel('Theme');
cy.get('div[aria-label="Editor settings"] button')
.contains('Theme')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('bottom', {
duration: 300,
});
cy.get(`#code-block-pro-theme-${theme}`).should('exist');
cy.get('div[aria-label="Editor settings"] button')
.contains('Theme')
.parents('.interface-interface-skeleton__sidebar')
.parents('.editor-sidebar')
.scrollTo('top', {
duration: 300,
});
Expand Down
18,612 changes: 13,612 additions & 5,000 deletions package-lock.json

Large diffs are not rendered by default.

71 changes: 36 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,52 +20,53 @@
"devDependencies": {
"@redux-devtools/extension": "^3.3.0",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/wordpress__block-editor": "11.5.14",
"@types/wordpress__block-editor": "11.5.15",
"@types/wordpress__blocks": "12.5.14",
"@types/wordpress__edit-post": "^7.5.6",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@wordpress/block-editor": "12.23.0",
"@wordpress/env": "9.7.0",
"@wordpress/scripts": "27.6.0",
"@wordpress/url": "3.56.0",
"autoprefixer": "10.4.19",
"@types/wordpress__edit-post": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "8.7.0",
"@wordpress/block-editor": "14.3.0",
"@wordpress/env": "10.8.0",
"@wordpress/scripts": "30.0.2",
"@wordpress/url": "4.8.0",
"autoprefixer": "10.4.20",
"copy-webpack-plugin": "12.0.2",
"cypress": "13.7.2",
"cypress-real-events": "^1.12.0",
"cypress-wait-until": "3.0.1",
"eslint": "8.57.0",
"cypress": "13.15.0",
"cypress-real-events": "^1.13.0",
"cypress-wait-until": "3.0.2",
"eslint": "9.11.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-cypress": "3.5.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.0",
"eslint-plugin-react-hooks": "rc",
"fast-glob": "3.3.2",
"glob": "10.3.12",
"glob": "11.0.0",
"postcss-import": "16.1.0",
"postcss-safe-important": "2.0.1",
"prettier": "3.2.5",
"replace-in-file": "7.1.0",
"tailwindcss": "3.4.3",
"typescript": "5.4.3",
"webpack": "^5.91.0"
"prettier": "3.3.3",
"replace-in-file": "8.2.0",
"tailwindcss": "3.4.13",
"typescript": "5.6.2",
"webpack": "^5.95.0"
},
"dependencies": {
"@headlessui/react": "1.7.18",
"@wordpress/block-editor": "12.23.0",
"@wordpress/blocks": "12.32.0",
"@wordpress/edit-post": "^7.32.0",
"@wordpress/element": "5.32.0",
"@wordpress/escape-html": "^2.55.0",
"@wordpress/hooks": "3.55.0",
"@wordpress/html-entities": "^3.55.0",
"@wordpress/i18n": "4.55.0",
"@headlessui/react": "2.1.8",
"@wordpress/block-editor": "14.3.0",
"@wordpress/blocks": "13.8.0",
"@wordpress/edit-post": "^8.8.3",
"@wordpress/element": "6.8.0",
"@wordpress/escape-html": "^3.8.0",
"@wordpress/hooks": "4.8.0",
"@wordpress/html-entities": "^4.8.0",
"@wordpress/i18n": "5.8.0",
"classnames": "^2.5.1",
"copy-to-clipboard": "3.3.3",
"react-simple-code-editor": "0.13.1",
"react-simple-code-editor": "0.14.1",
"shiki": "0.14.7",
"strip-ansi": "^7.1.0",
"swr": "2.2.5",
"zustand": "4.5.2"
"zustand": "4.5.5"
}
}
2 changes: 1 addition & 1 deletion src/editor/controls/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export const SidebarControls = ({
/>
<CheckboxControl
data-cy="use-tabs"
label={__('Use Real Tabs', 'code-block-pro')}
label={__('Use real tabs', 'code-block-pro')}
help={__(
'Inserts an actual tab character instead of a space. The width defined above.',
'code-block-pro',
Expand Down

0 comments on commit d6e7630

Please sign in to comment.