mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +05:30
Allow to execute decline oauth e2e tests since the backend has been fixed
This commit is contained in:
parent
89202e0942
commit
aababa1113
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user