Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cypress test grouping #3283

Merged
merged 14 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update: This commit fixes lint issues. Additionally, this adds fail-f…
…ast as false in cypress test matrix to avoid job cancellation incase of parallel job failure
  • Loading branch information
iamchughmayank committed Dec 8, 2022
commit 8304594c0b3919f53144734a6cc3078e63efc3d1
2 changes: 2 additions & 0 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
name: Cypress - Local
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testGroup: ['@slow', '-@slow']

Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
name: Cypress - EP.io
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testGroup: ['@slow', '-@slow']

Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/comments.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('Comments Feature', { tags: '@slow' }, () => {
const defaultApprovedComments = 26;

Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/facets.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('Facets Feature', { tags: '@slow' }, () => {
/**
* Ensure the feature is active, perform a sync, and remove test posts
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/instant-results.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* global isEpIo */

// eslint-disable-next-line jest/valid-describe-callback
describe('Instant Results Feature', { tags: '@slow' }, () => {
/**
* Create a Search widget.
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/search/search.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('Post Search Feature', { tags: '@slow' }, () => {
before(() => {
cy.wpCli('elasticpress sync --setup --yes');
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/terms.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('Terms Feature', { tags: '@slow' }, () => {
const tags = ['Far From Home', 'No Way Home', 'The Most Fun Thing'];

Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('WooCommerce Feature', { tags: '@slow' }, () => {
const userData = {
username: 'testuser',
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/general.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line jest/valid-describe-callback
describe('WordPress can perform standard ElasticPress actions', { tags: '@slow' }, () => {
it('Can see the settings page link in WordPress Dashboard', () => {
cy.login();
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/integration/wp-cli.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* global indexNames */

// eslint-disable-next-line jest/valid-describe-callback
describe('WP-CLI Commands', { tags: '@slow' }, () => {
let indexAllSitesNames = [];

Expand Down
1 change: 1 addition & 0 deletions tests/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import './global-hooks';

// Import cypress grep
import registerCypressGrep from '@cypress/grep';

registerCypressGrep();

// Alternatively you can use CommonJS syntax:
Expand Down