-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cxspa-4006: implement CHAPTCHA framework with mock CHAPTCHA service (#…
…18904) Co-authored-by: i822892 <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Arkadiy Sukharenko <[email protected]> Co-authored-by: Lee <[email protected]> Co-authored-by: Grace <[email protected]> Co-authored-by: Grace Dong <[email protected]> Co-authored-by: Giancarlo Cordero Ortiz <[email protected]> Co-authored-by: Radhep Sabapathipillai <[email protected]>
- Loading branch information
1 parent
d7a9b6c
commit 5826242
Showing
29 changed files
with
892 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...-e2e-cypress/cypress/e2e/regression/user_access/accessibility/captcha-tabbing-order.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 SAP Spartacus team <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { tabbingOrderConfig as config } from '../../../../helpers/accessibility/tabbing-order.config'; | ||
import { registerWithCaptchaTabbingOrder } from '../../../../helpers/accessibility/tabbing-order/register'; | ||
|
||
describe('Tabbing order for Captcha', () => { | ||
before(() => { | ||
cy.window().then((win) => win.sessionStorage.clear()); | ||
}); | ||
|
||
context('Captcha', () => { | ||
context('Register page', () => { | ||
it('should allow to navigate to captcha with tab key', () => { | ||
cy.intercept('GET', /\.*\/basesites\?fields=.*/, (req) => { | ||
req.continue((res) => { | ||
res?.body?.baseSites?.forEach((baseSite) => { | ||
baseSite.captchaConfig = { | ||
enabled: true, | ||
}; | ||
}); | ||
res.send(res.body); | ||
}); | ||
}); | ||
registerWithCaptchaTabbingOrder(config.registerWithCaptcha); | ||
}); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.