E2E tests (#6717)
Continuation of #6644 Now chromium browser is used in workspaces tests instead of firefox and screenshots after each test are properly saved in one folder when run from IDE and from terminal using `yarn test:e2e` command
This commit is contained in:
13
packages/twenty-e2e-testing/drivers/shell_driver.ts
Normal file
13
packages/twenty-e2e-testing/drivers/shell_driver.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { exec } from 'child_process';
|
||||
|
||||
export async function sh(cmd) {
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(cmd, (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve({ stdout, stderr });
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user