Skip to content

Commit

Permalink
yoloe2e2
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Feb 6, 2024
1 parent 0276730 commit 9a0ca17
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions packages/cli-e2e/__tests__/atomic.specs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import type {Browser, Page, HTTPResponse, Platform} from 'puppeteer';
import {captureScreenshots, getNewBrowser, openNewPage} from '../utils/browser';
import {answerPrompt, getProjectPath, setupUIProject} from '../utils/cli';
import {
answerPrompt,
getProjectPath,
isGenericYesNoPrompt,
setupUIProject,
} from '../utils/cli';
import {getPlatformClient, isSuccessfulSearchResponse} from '../utils/platform';
import {ProcessManager} from '../utils/processManager';
import {Terminal} from '../utils/terminal/terminal';
Expand Down Expand Up @@ -121,16 +126,6 @@ describe('ui:create:atomic', () => {
),
]);

await Promise.allSettled(
streams.map((stream) =>
buildTerminal
.when(/\(y\)/)
.on(stream)
.do(answerPrompt(`n${EOL}`))
.once()
)
);

await Promise.allSettled(
streams.map((stream) =>
buildTerminal
Expand Down Expand Up @@ -191,17 +186,11 @@ describe('ui:create:atomic', () => {
},
{
describeName: 'when using a fresh ngsp (--pageId flag specified)',
buildAppOptions: Object.defineProperties(
{
id: 'fresh-ngsp',
skipInstall: false,
},
{
pageId: {
get: () => freshNgspId,
},
}
),
buildAppOptions: {
id: 'fresh-ngsp',
skipInstall: false,
pageId: '5a8eb80a-acc7-418d-a5a0-ad952fe1de96',
},
skipBrowser: false,
},
{
Expand Down

0 comments on commit 9a0ca17

Please sign in to comment.