mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Change prettier rules
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import './commands';
|
||||
|
||||
Cypress.on('window:before:load', (win) => {
|
||||
// Remove fetch to enable correct api mocking with the cypress xhr mocks
|
||||
win.fetch = null;
|
||||
// The browser extends the system's language. Not everyone so cool to use English on their workstation,
|
||||
// so we must force browser's language to be English to let tests, based on buttons labels, work
|
||||
Object.defineProperty(win.navigator, 'languages', {
|
||||
get() {
|
||||
return ['en-US', 'en'];
|
||||
},
|
||||
});
|
||||
// Remove fetch to enable correct api mocking with the cypress xhr mocks
|
||||
win.fetch = null;
|
||||
// The browser extends the system's language. Not everyone so cool to use English on their workstation,
|
||||
// so we must force browser's language to be English to let tests, based on buttons labels, work
|
||||
Object.defineProperty(win.navigator, 'languages', {
|
||||
get() {
|
||||
return ['en-US', 'en'];
|
||||
},
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user