Skip to content

Commit

Permalink
Initial upgrade Cypress v10 (#231)
Browse files Browse the repository at this point in the history
* Initial upgrade Cypress v10

* GitHub action fix, new changelog entry and change in Cypress test file extension
  • Loading branch information
AlvaroMCSL authored Aug 23, 2022
1 parent 5db0660 commit 9400c11
Show file tree
Hide file tree
Showing 7 changed files with 26,893 additions and 936 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

- name: Install
uses: bahmutov/npm-install@v1
with:
install-command: npm ci --legacy-peer-deps

- name: Build
run: |
Expand Down
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

## HEAD (Unreleased)

_(none)_

---
- Bump to Cypress version 10.6.0

## 9.0.0 (2021-03-30)

Expand Down
8 changes: 8 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
supportFile: false,
setupNodeEvents(on, config) {}
}
});
1 change: 0 additions & 1 deletion cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
describe('Demo', () => {
const dragAndDrop = (fromElement, toElement, location = 'bottomRight') => {
cy.get(fromElement).first().trigger('mousedown', { which: 1 });
cy.get(toElement).trigger('mousemove', location).trigger('mouseup');
cy.get(toElement)
.trigger('mousemove', location as any)
.trigger('mouseup');
};

const matchOrder = order => {
Expand Down
Loading

0 comments on commit 9400c11

Please sign in to comment.