Skip to content

Commit

Permalink
no sandbox in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 26, 2025
1 parent 98366da commit eebb6b3
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 15 deletions.
4 changes: 3 additions & 1 deletion tests/e2e/01_counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('01_minimal', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/02_person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('02_typescript', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/03_usestate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('03_usestate', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/04_selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('04_selector', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/05_container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('05_container', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/06_customhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('06_customhook', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/07_todolist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('07_todolist', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/08_comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('08_comparison', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/09_reactmemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('09_reactmemo', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/10_untracked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('10_untracked', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/11_form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('11_form', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/12_async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ describe('12_async', () => {
});

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/13_saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ describe('13_saga', () => {
});

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/14_dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('14_dynamic', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/15_reactmemoref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('15_reactmemoref', () => {
const port = process.env.PORT || '8080';

it('should work with recorded events', async () => {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: process.env.CI ? ['--no-sandbox'] : [],
});
const page = await browser.newPage();
await page.goto(`http://localhost:${port}/`);

Expand Down

0 comments on commit eebb6b3

Please sign in to comment.