Skip to content

Commit 73002c2

Browse files
committed
Fix e2e
At first, bump cypress from 9.7.0 to 10.0.0
1 parent cc73d79 commit 73002c2

File tree

7 files changed

+41
-19
lines changed

7 files changed

+41
-19
lines changed

modules/web/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ dist/
3434
!.yarn/releases
3535
!.yarn/sdks
3636
!.yarn/versions
37+
38+
# Cypress
39+
40+
cypress/screenshots

modules/web/cypress.config.cjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2017 The Kubernetes Authors.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
const { defineConfig } = require('cypress');
16+
17+
module.exports = defineConfig({
18+
"e2e": {
19+
"baseUrl": "http://localhost:8080",
20+
"supportFile": "./cypress/support/index.ts",
21+
"video": false,
22+
"chromeWebSecurity": false,
23+
"screenshotOnRunFailure": true,
24+
"videoCompression": false,
25+
"pageLoadTimeout": 10000,
26+
"viewportHeight": 1080,
27+
"viewportWidth": 1920,
28+
},
29+
});

modules/web/cypress.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/web/cypress/integration/specs/nav.spec.ts renamed to modules/web/cypress/e2e/nav.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
import {NavbarPage} from '../../pages/navbarPage';
17+
import {NavbarPage} from '../pages/navbarPage';
1818

1919
describe('Navbar', () => {
2020
before(() => {

modules/web/cypress/integration/specs/userpanel.spec.ts renamed to modules/web/cypress/e2e/userpanel.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
import {UserpanelPage} from '../../pages/userpanelPage';
17+
import {UserpanelPage} from '../pages/userpanelPage';
1818

1919
describe('Userpanel', () => {
2020
before(() => {

modules/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"@typescript-eslint/parser": "5.38.0",
106106
"codelyzer": "6.0.2",
107107
"concurrently": "7.6.0",
108-
"cypress": "9.7.0",
108+
"cypress": "10.0.0",
109109
"cypress-fail-fast": "5.0.1",
110110
"del": "6.1.1",
111111
"eslint": "8.33.0",

modules/web/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6289,9 +6289,9 @@ __metadata:
62896289
languageName: node
62906290
linkType: hard
62916291

6292-
"cypress@npm:9.7.0":
6293-
version: 9.7.0
6294-
resolution: "cypress@npm:9.7.0"
6292+
"cypress@npm:10.0.0":
6293+
version: 10.0.0
6294+
resolution: "cypress@npm:10.0.0"
62956295
dependencies:
62966296
"@cypress/request": ^2.88.10
62976297
"@cypress/xvfb": ^1.2.4
@@ -6337,7 +6337,7 @@ __metadata:
63376337
yauzl: ^2.10.0
63386338
bin:
63396339
cypress: bin/cypress
6340-
checksum: 45df7c85bc7ec2e187153ff2b98bf5106d2313d70e2367a5742b5269a9e82d3fdd730d5bbc32ac8da72aeb120a52f9384c2ba4e2fc86b532f68440f22d700fc9
6340+
checksum: 0fabf7738b1c8729353a2deede13e500263f50dacfab456a3b9bc881c22620151a574f9b27f30e7c6975f88f3d0e070e980c545c598bb23f09a5b5e900b02ca6
63416341
languageName: node
63426342
linkType: hard
63436343

@@ -10540,7 +10540,7 @@ __metadata:
1054010540
concurrently: 7.6.0
1054110541
core-js: 3.27.2
1054210542
crop-url: 4.0.1
10543-
cypress: 9.7.0
10543+
cypress: 10.0.0
1054410544
cypress-fail-fast: 5.0.1
1054510545
d3-shape: 3.2.0
1054610546
d3-time-format: 4.1.0

0 commit comments

Comments
 (0)