mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-29 02:22:28 +00:00
Fix cypress oauth test one more time
This commit is contained in:
parent
8434b9fce4
commit
4e6d65645f
@ -53,9 +53,10 @@ describe('OAuth with Authentik', () => {
|
|||||||
path: '/oauth/login?redirect_base=' + encodeURI(Cypress.config('baseUrl')),
|
path: '/oauth/login?redirect_base=' + encodeURI(Cypress.config('baseUrl')),
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
expect(data).to.have.property('result');
|
expect(data).to.have.property('result');
|
||||||
cy.visit(data.result);
|
|
||||||
|
|
||||||
cy.get('ak-flow-executor')
|
cy.origin('http://authentik:9000', {args: data.result}, (url) => {
|
||||||
|
cy.visit(url);
|
||||||
|
cy.get('ak-flow-executor')
|
||||||
.shadow()
|
.shadow()
|
||||||
.find('ak-stage-identification')
|
.find('ak-stage-identification')
|
||||||
.shadow()
|
.shadow()
|
||||||
@ -82,10 +83,15 @@ describe('OAuth with Authentik', () => {
|
|||||||
.shadow()
|
.shadow()
|
||||||
.find('button[type="submit"]', { visible: true })
|
.find('button[type="submit"]', { visible: true })
|
||||||
.click();
|
.click();
|
||||||
|
})
|
||||||
|
|
||||||
|
// we should be logged in
|
||||||
cy.get('#root p.chakra-text')
|
cy.get('#root p.chakra-text')
|
||||||
.first()
|
.first()
|
||||||
.should('have.text', 'Nginx Proxy Manager');
|
.should('have.text', 'Nginx Proxy Manager');
|
||||||
|
|
||||||
|
// logout:
|
||||||
|
cy.clearLocalStorage();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,9 @@ describe('UI Setup and Login', () => {
|
|||||||
cy.get('input[name="password"]').type('changeme');
|
cy.get('input[name="password"]').type('changeme');
|
||||||
cy.get('form button:last').click();
|
cy.get('form button:last').click();
|
||||||
|
|
||||||
// To fix after chakra change:
|
cy.get('#root p.chakra-text')
|
||||||
// cy.get('.navbar-nav .avatar').should('be.visible');
|
.first()
|
||||||
|
.should('have.text', 'Nginx Proxy Manager');
|
||||||
|
|
||||||
// logout:
|
// logout:
|
||||||
cy.clearLocalStorage();
|
cy.clearLocalStorage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user