test: use cypress instead of protractor

This commit is contained in:
Jovan Krunić
2022-03-23 10:14:56 +00:00
parent b95c796358
commit 0479e7cdc3
18 changed files with 659 additions and 159 deletions

22
cypress/support/index.ts Normal file
View File

@@ -0,0 +1,22 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// When a command from ./commands is ready to use, import with `import './commands'` syntax
// import './commands';
Cypress.on('window:before:load', window => {
// Fake that user is using its browser in german language
Object.defineProperty(window.navigator, 'language', { value: 'de-DE' });
Object.defineProperty(window.navigator, 'languages', [{ value: 'de-DE' }]);
});