File tree 4 files changed +41
-0
lines changed
4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ const { defineConfig } = require ( 'cypress' )
2
+
3
+ module . exports = defineConfig ( {
4
+ e2e : {
5
+ supportFile : false
6
+ }
7
+ } )
Original file line number Diff line number Diff line change
1
+ FROM cypress/included:10.9.0
2
+
3
+ WORKDIR /app
4
+
5
+ # Suppress most Cypress output
6
+ # ENV CI=1
7
+
8
+ # CMD ["cypress run"]
9
+ # CMD ["bash"]
10
+ ENTRYPOINT ["bash" ]
Original file line number Diff line number Diff line change @@ -13,3 +13,16 @@ services:
13
13
- " 8080:9080"
14
14
volumes :
15
15
- ../..:/app
16
+
17
+ cypress :
18
+ image : cypress
19
+ build :
20
+ dockerfile : ./cypress/docker/cypress.Dockerfile
21
+ context : ../..
22
+ container_name : cypress
23
+ stdin_open : true
24
+ tty : true
25
+ environment :
26
+ - CYPRESS_baseUrl=http://webserver:9080
27
+ volumes :
28
+ - ../..:/app
Original file line number Diff line number Diff line change
1
+ context ( 'Without a config parameter' , ( ) => {
2
+ beforeEach ( ( ) => {
3
+ cy . visit ( '/' )
4
+ } )
5
+
6
+ it ( 'shows an error' , ( ) => {
7
+ cy . get ( '#viewer' ) . should ( e => {
8
+ expect ( e ) . to . contain ( 'supply a config' )
9
+ } )
10
+ } )
11
+ } )
You can’t perform that action at this time.
0 commit comments