Skip to content

Commit ec01b2c

Browse files
authored
chore(deps): update dependencies (#4060)
- bump sass from 1.59.3 to 1.62.0 - bump rimraf from 4.4.0 to 5.0.0 - bump eslint-plugin-cypress from 2.12.1 to 2.13.2 Closes #4036 Closes #4032 Closes #4025
1 parent 16140a0 commit ec01b2c

11 files changed

+358
-192
lines changed

package-lock.json

Lines changed: 206 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@
110110
"cypress-file-upload": "^5.0.8",
111111
"eslint-config-airbnb": "^19.0.4",
112112
"eslint-config-prettier": "^8.8.0",
113-
"eslint-plugin-cypress": "^2.12.1",
113+
"eslint-plugin-cypress": "^2.13.2",
114114
"eslint-plugin-prettier": "^4.2.1",
115115
"https-browserify": "^1.0.0",
116116
"husky": "^8.0.3",
117117
"jest-canvas-mock": "^2.5.0",
118118
"lint-staged": "^13.2.0",
119119
"prettier": "^2.8.7",
120120
"react-scripts": "file:./create-react-app/packages/react-scripts",
121-
"rimraf": "^4.3.0",
122-
"sass": "^1.59.3",
121+
"rimraf": "^5.0.0",
122+
"sass": "^1.62.0",
123123
"serve": "^14.2.0",
124124
"source-map-explorer": "^2.5.3",
125125
"start-server-and-test": "^2.0.0",

test/cypress/integration/plugin.dialogs.spec.js

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,22 @@ describe('Dialogs: Confirm', () => {
1616
});
1717
it('should close the Confirm Dialog via `x` button', () => {
1818
cy.contains('File').click(); // File Menu
19-
cy.contains('Import URL')
20-
.trigger('mousemove')
21-
.click()
22-
.get('#input-import-url')
23-
.should('be.visible')
24-
.get('.close')
25-
.click()
26-
.get('#input-import-url')
27-
.should('not.exist');
19+
20+
cy.contains('Import URL').trigger('mousemove');
21+
cy.contains('Import URL').click();
22+
23+
cy.get('#input-import-url').should('be.visible');
24+
cy.get('.close').click();
25+
cy.get('#input-import-url').should('not.exist');
2826
});
2927
it('should close the Confirm Dialog via `Cancel` button', () => {
3028
cy.contains('File').click(); // File Menu
31-
cy.contains('Import URL')
32-
.trigger('mousemove')
33-
.click()
34-
.get('#input-import-url')
35-
.should('be.visible')
36-
.get('.btn-secondary')
37-
.click()
38-
.get('#input-import-url')
39-
.should('not.exist');
29+
30+
cy.contains('Import URL').trigger('mousemove');
31+
cy.contains('Import URL').click();
32+
33+
cy.get('#input-import-url').should('be.visible');
34+
cy.get('.btn-secondary').click();
35+
cy.get('#input-import-url').should('not.exist');
4036
});
4137
});

test/cypress/integration/plugin.dropzone.spec.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ describe('Dropzone in Layout', () => {
1212
cy.get('[data-cy="dropzone"]')
1313
.attachFile(['petstore-oas3.yaml', 'petstore-oas3.yaml'], { subjectType: 'input' })
1414
.then(() => {
15-
cy.get('.modal-title')
16-
.should('contains.text', 'Uh oh, an error has occurred')
17-
.get('.modal-body > div')
18-
.should('contains.text', 'Sorry, there was an error processing your file')
19-
// assert on AlertDialog interaction via `x` button'
20-
.get('.close')
21-
.click()
22-
.get('.modal-title')
23-
.should('not.exist');
15+
cy.get('.modal-title').should('contains.text', 'Uh oh, an error has occurred');
16+
cy.get('.modal-body > div').should(
17+
'contains.text',
18+
'Sorry, there was an error processing your file'
19+
);
20+
// assert on AlertDialog interaction via `x` button'
21+
cy.get('.close').click();
22+
cy.get('.modal-title').should('not.exist');
2423
});
2524
});
2625
});

test/cypress/integration/plugin.editor-monaco.spec.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ describe('Monaco Editor with Parser', () => {
1313
});
1414

1515
it('should not throw console.error when parsing empty string', () => {
16-
cy.get('.monaco-editor textarea:first', { timeout: 10000 })
17-
.should('be.visible')
18-
.click({ force: true })
19-
.focused()
20-
.type(selectAllKeys)
21-
.clear();
16+
cy.get('.monaco-editor textarea:first', { timeout: 10000 }).should('be.visible');
17+
cy.get('.monaco-editor textarea:first').click({ force: true });
18+
cy.get('.monaco-editor textarea:first').focused();
19+
cy.get('.monaco-editor textarea:first').type(selectAllKeys);
20+
cy.get('.monaco-editor textarea:first').clear();
2221

2322
cy.waitForContentPropagation();
2423

@@ -27,12 +26,11 @@ describe('Monaco Editor with Parser', () => {
2726
});
2827

2928
it('should not throw console.error when parsing unsupported definition', () => {
30-
cy.get('.monaco-editor textarea:first', { timeout: 10000 })
31-
.should('be.visible')
32-
.click({ force: true })
33-
.focused()
34-
.type(selectAllKeys)
35-
.type('randomapi: 1.0.0\n');
29+
cy.get('.monaco-editor textarea:first', { timeout: 10000 }).should('be.visible');
30+
cy.get('.monaco-editor textarea:first').click({ force: true });
31+
cy.get('.monaco-editor textarea:first').focused();
32+
cy.get('.monaco-editor textarea:first').type(selectAllKeys);
33+
cy.get('.monaco-editor textarea:first').type('randomapi: 1.0.0\n');
3634

3735
cy.waitForContentPropagation();
3836

test/cypress/integration/plugin.editor-persistence.spec.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ describe('EditorPersistencePlugin', () => {
1919

2020
const moveToPosition = `{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}{rightArrow}`;
2121

22-
cy.get('.monaco-editor textarea:first', { timeout: 10000 })
23-
.should('be.visible')
24-
.click({ force: true })
25-
.focused()
26-
.type(`${moveToPosition}{shift+rightArrow}5`);
22+
cy.get('.monaco-editor textarea:first', { timeout: 10000 }).should('be.visible');
23+
cy.get('.monaco-editor textarea:first').click({ force: true });
24+
cy.get('.monaco-editor textarea:first').focused();
25+
cy.get('.monaco-editor textarea:first').type(`${moveToPosition}{shift+rightArrow}5`);
2726

2827
cy.get('.monaco-editor .view-lines')
2928
.should('contains.text', '2.5.0')

test/cypress/integration/plugin.editor-preview-api-design-systems.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('Editor Preview Pane: AsyncAPI 2.x', () => {
99
it('displays API Design Systems', () => {
1010
cy.contains('File').click();
1111
cy.contains('Load Example').trigger('mouseover');
12-
cy.contains('API Design Systems').trigger('mousemove').click();
12+
cy.contains('API Design Systems').trigger('mousemove');
13+
cy.contains('API Design Systems').click();
1314

1415
cy.get('.title').contains('SmartBear API Guidelines').should('be.visible');
1516
cy.get('.version-stamp > .version').should('be.visible').contains('ADS').should('be.visible');
@@ -18,7 +19,8 @@ describe('Editor Preview Pane: AsyncAPI 2.x', () => {
1819
it('hidden if not API Design Systems', () => {
1920
cy.contains('File').click();
2021
cy.contains('Load Example').trigger('mouseover');
21-
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove').click();
22+
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove');
23+
cy.contains('OpenAPI 3.0 Petstore').click();
2224

2325
cy.get('.title').contains('SmartBear API Guidelines').should('not.exist');
2426
cy.get('.version-stamp > .version').find('ADS').should('not.exist');

test/cypress/integration/plugin.editor-preview-asyncapi.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('Editor Preview Pane: AsyncAPI 2.x', () => {
99
it('displays AsyncAPI 2.x.x', () => {
1010
cy.contains('File').click();
1111
cy.contains('Load Example').trigger('mouseover');
12-
cy.contains('AsyncAPI 2.6 Streetlights').trigger('mousemove').click();
12+
cy.contains('AsyncAPI 2.6 Streetlights').trigger('mousemove');
13+
cy.contains('AsyncAPI 2.6 Streetlights').click();
1314

1415
cy.get('#check-out-its-awesome-features').should('be.visible');
1516
cy.get('#servers').should('be.visible');
@@ -18,7 +19,8 @@ describe('Editor Preview Pane: AsyncAPI 2.x', () => {
1819
it('hidden if not AsyncAPI 2.x.x', () => {
1920
cy.contains('File').click();
2021
cy.contains('Load Example').trigger('mouseover');
21-
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove').click();
22+
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove');
23+
cy.contains('OpenAPI 3.0 Petstore').click();
2224

2325
cy.get('#check-out-its-awesome-features').should('not.exist');
2426
cy.get('#servers').should('not.exist');

test/cypress/integration/plugin.editor-preview-swagger-ui.spec.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('Editor Preview Pane: OpenAPI 2.0, 3.0.x, 3.1.x', () => {
99
it('should display OpenAPI 2.0', () => {
1010
cy.contains('File').click();
1111
cy.contains('Load Example').trigger('mouseover');
12-
cy.contains('OpenAPI 2.0 Petstore').trigger('mousemove').click();
12+
cy.contains('OpenAPI 2.0 Petstore').trigger('mousemove');
13+
cy.contains('OpenAPI 2.0 Petstore').click();
1314

1415
// `.title` and `.version-stamp` are SwaggerUI specific css classes, that should only appear in the preview pane
1516
cy.get('.title').contains('Swagger Petstore 2.0').should('be.visible');
@@ -19,7 +20,8 @@ describe('Editor Preview Pane: OpenAPI 2.0, 3.0.x, 3.1.x', () => {
1920
it('should display OpenAPI 3.0.x', () => {
2021
cy.contains('File').click();
2122
cy.contains('Load Example').trigger('mouseover');
22-
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove').click();
23+
cy.contains('OpenAPI 3.0 Petstore').trigger('mousemove');
24+
cy.contains('OpenAPI 3.0 Petstore').click();
2325

2426
// `.title` and `.version-stamp` are SwaggerUI specific css classes, that should only appear in the preview pane
2527
cy.get('.title').contains('Swagger Petstore - OpenAPI 3.0').should('be.visible');
@@ -32,7 +34,8 @@ describe('Editor Preview Pane: OpenAPI 2.0, 3.0.x, 3.1.x', () => {
3234
it('should display OpenAPI 3.1.0', () => {
3335
cy.contains('File').click();
3436
cy.contains('Load Example').trigger('mouseover');
35-
cy.contains('OpenAPI 3.1 Petstore').trigger('mousemove').click();
37+
cy.contains('OpenAPI 3.1 Petstore').trigger('mousemove');
38+
cy.contains('OpenAPI 3.1 Petstore').click();
3639

3740
// `.title` and `.version-stamp` are SwaggerUI specific css classes, that should only appear in the preview pane
3841
cy.get('.title').contains('Swagger Petstore - OpenAPI 3.1').should('be.visible');
@@ -45,7 +48,8 @@ describe('Editor Preview Pane: OpenAPI 2.0, 3.0.x, 3.1.x', () => {
4548
it('should be hidden if not OpenAPI', () => {
4649
cy.contains('File').click();
4750
cy.contains('Load Example').trigger('mouseover');
48-
cy.contains('AsyncAPI 2.6 Petstore').trigger('mousemove').click();
51+
cy.contains('AsyncAPI 2.6 Petstore').trigger('mousemove');
52+
cy.contains('AsyncAPI 2.6 Petstore').click();
4953

5054
// `.title` is a SwaggerUI specific css class
5155
cy.get('.title').should('not.exist');

0 commit comments

Comments
 (0)