Allow to execute decline oauth e2e tests since the backend has been fixed

This commit is contained in:
ErickSkrauch 2021-03-29 04:54:37 +02:00
parent 89202e0942
commit aababa1113
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -95,8 +95,7 @@ describe('OAuth', () => {
cy.url().should('match', /^http:\/\/localhost:8080\/?\?code=[^&]+&state=$/); cy.url().should('match', /^http:\/\/localhost:8080\/?\?code=[^&]+&state=$/);
}); });
// TODO: enable, when backend api will return correct response on auth decline it('should redirect to error page, when permission request declined', () => {
xit('should redirect to error page, when permission request declined', () => {
cy.server(); cy.server();
cy.route({ cy.route({
@ -338,8 +337,7 @@ describe('OAuth', () => {
cy.url().should('match', /^http:\/\/localhost:8080\/?\?code=[^&]+&state=$/); cy.url().should('match', /^http:\/\/localhost:8080\/?\?code=[^&]+&state=$/);
}); });
// TODO: enable, when backend api will return correct response on auth decline it('should redirect to error page, when permission request declined', () => {
xit('should redirect to error page, when permission request declined', () => {
cy.login({ accounts: ['default'] }); cy.login({ accounts: ['default'] });
cy.visit( cy.visit(