mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-02 03:31:05 +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