mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-27 03:22:15 +03:00
26 lines
879 B
TypeScript
26 lines
879 B
TypeScript
|
import { setElementValue, spawnAndLog, findAndClick } from '../utils.js';
|
||
|
|
||
|
describe('Project', () => {
|
||
|
before(() => {
|
||
|
spawnAndLog('bash', [
|
||
|
'-c',
|
||
|
'./e2e/scripts/init-repositories.sh ../../target/debug/gitbutler-cli'
|
||
|
]);
|
||
|
});
|
||
|
|
||
|
it('should add a local project', async () => {
|
||
|
await findAndClick('button[data-testid="analytics-continue"]');
|
||
|
|
||
|
// Workaround selecting path via fileDialog by setting a hidden input value
|
||
|
const dirInput = await $('input[data-testid="test-directory-path"]');
|
||
|
setElementValue(dirInput, `/tmp/gb-e2e-repos/one-vbranch-on-integration`);
|
||
|
|
||
|
await findAndClick('button[data-testid="add-local-project"]');
|
||
|
await findAndClick('button[data-testid="set-base-branch"]');
|
||
|
await findAndClick('button[data-testid="accept-git-auth"]');
|
||
|
|
||
|
const workspaceButton = await $('button=Workspace');
|
||
|
await expect(workspaceButton).toExist();
|
||
|
});
|
||
|
});
|