Skip to content

Commit

Permalink
chore: add git sync enable flag for test
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryYangxx committed Jul 8, 2024
1 parent 76bdb31 commit 72513b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/insomnia-smoke-test/tests/smoke/git-sync.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { test } from '../../playwright/test';
test('Clone from github', async ({ page }) => {
// waitting for the /features api request to finish
await page.waitForSelector('[data-test-git-enable="true"]');
await page.getByLabel('Clone git repository').click();
await page.getByRole('tab', { name: ' Git' }).click();
await page.getByPlaceholder('https://github.com/org/repo.git').fill('https://github.com/jackkav/insomnia-git-example.git');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export const EmptyStatePane: FC<Props> = ({ createRequestCollection, createDesig
</AlmostSquareButton>
<AlmostSquareButton
aria-label='Clone git repository'
data-test-git-enable={isGitSyncEnabled}
onClick={
() => {
isGitSyncEnabled ?
Expand Down

0 comments on commit 72513b9

Please sign in to comment.