File tree Expand file tree Collapse file tree 13 files changed +170
-954
lines changed Expand file tree Collapse file tree 13 files changed +170
-954
lines changed Original file line number Diff line number Diff line change
1
+ playwright.config.ts
Original file line number Diff line number Diff line change 45
45
! .yarn /plugins
46
46
! .yarn /releases
47
47
! .yarn /sdks
48
- ! .yarn /versions
48
+ ! .yarn /versions
49
+
50
+ # E2E test reports
51
+ e2e-test-report /
Original file line number Diff line number Diff line change 1
1
# Stage 1 - Create yarn install skeleton layer
2
- FROM node:18-bullseye -slim AS packages
2
+ FROM node:18-bookworm -slim AS packages
3
3
4
4
WORKDIR /app
5
5
COPY package.json yarn.lock ./
@@ -12,7 +12,7 @@ COPY packages packages
12
12
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf
13
13
14
14
# Stage 2 - Install dependencies and build packages
15
- FROM node:18-bullseye -slim AS build
15
+ FROM node:18-bookworm -slim AS build
16
16
17
17
# Set Python interpreter for `node-gyp` to use
18
18
ENV PYTHON /usr/bin/python3
@@ -46,7 +46,7 @@ RUN mkdir packages/backend/dist/skeleton packages/backend/dist/bundle \
46
46
&& tar xzf packages/backend/dist/bundle.tar.gz -C packages/backend/dist/bundle
47
47
48
48
# Stage 3 - Build the actual backend image and install production dependencies
49
- FROM node:18-bullseye -slim
49
+ FROM node:18-bookworm -slim
50
50
51
51
# Set Python interpreter for `node-gyp` to use
52
52
ENV PYTHON /usr/bin/python3
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"private" : true ,
5
5
"engines" : {
6
- "node" : " 16 || 18 "
6
+ "node" : " 18 || 20 "
7
7
},
8
8
"scripts" : {
9
9
"dev" : " concurrently \" yarn start\" \" yarn start-backend\" " ,
15
15
"clean" : " backstage-cli repo clean" ,
16
16
"test" : " backstage-cli repo test" ,
17
17
"test:all" : " backstage-cli repo test --coverage" ,
18
+ "test:e2e" : " playwright test" ,
18
19
"lint" : " backstage-cli repo lint --since origin/master" ,
19
20
"lint:all" : " backstage-cli repo lint" ,
20
21
"create-plugin" : " backstage-cli create-plugin --scope internal --no-private" ,
35
36
},
36
37
"devDependencies" : {
37
38
"@backstage/cli" : " ^0.23.0-next.1" ,
39
+ "@backstage/e2e-test-utils" : " ^0.1.0-next.0" ,
40
+ "@playwright/test" : " ^1.32.3" ,
38
41
"@spotify/prettier-config" : " ^7.0.0" ,
39
42
"concurrently" : " ^6.0.0" ,
40
43
"eslint-plugin-jest" : " *" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2023 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { test , expect } from '@playwright/test' ;
18
+
19
+ test ( 'App should render the welcome page' , async ( { page } ) => {
20
+ await page . goto ( '/' ) ;
21
+ await expect ( page . getByText ( 'My Company Catalog' ) ) . toBeVisible ( ) ;
22
+ } ) ;
Original file line number Diff line number Diff line change 43
43
"react-use" : " ^15.3.3"
44
44
},
45
45
"devDependencies" : {
46
+ "@playwright/test" : " ^1.32.3" ,
46
47
"@testing-library/jest-dom" : " ^5.16.5" ,
47
48
"@testing-library/react" : " ^14.0.0" ,
48
49
"@types/jest" : " ^26.0.7" ,
49
50
"@types/node" : " ^12.0.0" ,
50
51
"@types/react-dom" : " *" ,
51
- "cross-env" : " ^7.0.0" ,
52
- "cypress" : " ^4.2.0" ,
53
- "eslint-plugin-cypress" : " ^2.10.3" ,
54
- "start-server-and-test" : " ^1.10.11"
52
+ "cross-env" : " ^7.0.0"
55
53
},
56
54
"scripts" : {
57
55
"start" : " backstage-cli package start" ,
58
56
"build" : " backstage-cli package build" ,
59
57
"test" : " backstage-cli package test" ,
60
58
"lint" : " backstage-cli package lint" ,
61
- "test:e2e" : " cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:dev" ,
62
- "test:e2e:ci" : " cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:run" ,
63
- "cy:dev" : " cypress open" ,
64
- "cy:run" : " cypress run" ,
65
59
"clean" : " backstage-cli package clean"
66
60
},
67
61
"browserslist" : {
Original file line number Diff line number Diff line change 8
8
name ="description "
9
9
content ="Backstage is an open platform for building developer portals "
10
10
/>
11
- < link rel ="apple-touch-icon " href ="<%= publicPath %>/logo192.png " />
12
11
<!--
13
12
manifest.json provides metadata used when your web app is installed on a
14
13
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
You can’t perform that action at this time.
0 commit comments