File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,10 @@ describe('OAuth with Authentik', () => {
53
53
path : '/oauth/login?redirect_base=' + encodeURI ( Cypress . config ( 'baseUrl' ) ) ,
54
54
} ) . then ( ( data ) => {
55
55
expect ( data ) . to . have . property ( 'result' ) ;
56
- cy . visit ( data . result ) ;
57
56
58
- cy . get ( 'ak-flow-executor' )
57
+ cy . origin ( 'http://authentik:9000' , { args : data . result } , ( url ) => {
58
+ cy . visit ( url ) ;
59
+ cy . get ( 'ak-flow-executor' )
59
60
. shadow ( )
60
61
. find ( 'ak-stage-identification' )
61
62
. shadow ( )
@@ -82,10 +83,15 @@ describe('OAuth with Authentik', () => {
82
83
. shadow ( )
83
84
. find ( 'button[type="submit"]' , { visible : true } )
84
85
. click ( ) ;
86
+ } )
85
87
88
+ // we should be logged in
86
89
cy . get ( '#root p.chakra-text' )
87
90
. first ( )
88
91
. should ( 'have.text' , 'Nginx Proxy Manager' ) ;
92
+
93
+ // logout:
94
+ cy . clearLocalStorage ( ) ;
89
95
} ) ;
90
96
} ) ;
91
97
}
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ describe('UI Setup and Login', () => {
14
14
cy . get ( 'input[name="password"]' ) . type ( 'changeme' ) ;
15
15
cy . get ( 'form button:last' ) . click ( ) ;
16
16
17
- // To fix after chakra change:
18
- // cy.get('.navbar-nav .avatar').should('be.visible');
17
+ cy . get ( '#root p.chakra-text' )
18
+ . first ( )
19
+ . should ( 'have.text' , 'Nginx Proxy Manager' ) ;
19
20
20
21
// logout:
21
22
cy . clearLocalStorage ( ) ;
You can’t perform that action at this time.
0 commit comments