Skip to content

Commit

Permalink
remove cypress specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
tschortsch committed Nov 19, 2023
1 parent 8db92c1 commit 925c34d
Show file tree
Hide file tree
Showing 25 changed files with 51 additions and 2,123 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ node_modules
vendor
build
!.*.js
snapshots.js
cypress/index.d.ts
release/
14 changes: 2 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
module.exports = {
root: true,
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: [ require.resolve( '@wordpress/babel-preset-default' ) ],
},
globals: {
wp: 'off',
},
overrides: [
{
// Use cypress/recommended plugin for cypress tests.
files: [ 'cypress/**/*.js' ],
extends: [ 'plugin:cypress/recommended' ],
},
],
};
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ build/*
!build/settings.css
composer.phar
/release
cypress/videos
cypress/screenshots
.DS_Store
/test-results/
/artifacts/
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The support is still experimental since it's also marked as experimental in the

## Bootstrap library

Please be aware that this plugin does not include the Bootstrap library in your website. You need to do this by yourself.
Please be aware that this plugin does not include the Bootstrap library in your website. You need to do this by yourself.
We decided not to include the library so that you can modify Bootstrap to your own needs before loading it.

The easiest way to do this is to add the following to your theme's `functions.php`:
Expand Down Expand Up @@ -864,7 +864,7 @@ The following commands can be used to set up a local dev environment. See the of
There are two types of tests for this plugin:

* PHPUnit Tests: Used to validate generated block output. Since this plugin uses dynamic blocks which are rendered on the server side we need to test them with PHPUnit tests.
* Cypress E2E Tests: Used to validate block behaviour in the editor.
* Playwright E2E Tests: Used to validate block behaviour in the editor.

#### PHPUnitTests

Expand All @@ -890,9 +890,9 @@ or the following command to run a specific test:
npm run test:unit:php -- --filter 'my_test'
```

#### Cypress E2E Tests
#### Playwright E2E Tests

The Cypress E2E Tests are stored in the `cypress` directory.
The Playwright E2E Tests are stored in the `playwright` directory.

To run the tests use the following command:

Expand Down
18 changes: 0 additions & 18 deletions cypress.config.js

This file was deleted.

18 changes: 0 additions & 18 deletions cypress/index.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions cypress/plugins/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/support/commands/get-by-cy.js

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/support/commands/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/support/commands/insert-button-block.js

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/support/commands/insert-container-block.js

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/support/commands/insert-row-block.js

This file was deleted.

7 changes: 0 additions & 7 deletions cypress/support/commands/post-content-matches-snapshot.js

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/support/commands/row-template-is-selected.js

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/support/commands/select-button-block.js

This file was deleted.

13 changes: 0 additions & 13 deletions cypress/support/commands/select-column-block.js

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/support/commands/select-container-block.js

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/support/commands/select-row-block.js

This file was deleted.

22 changes: 0 additions & 22 deletions cypress/support/e2e.js

This file was deleted.

88 changes: 0 additions & 88 deletions cypress/support/row/feature-tests.js

This file was deleted.

29 changes: 0 additions & 29 deletions cypress/support/row/transform-tests.js

This file was deleted.

Loading

0 comments on commit 925c34d

Please sign in to comment.