Skip to content

Commit b64604c

Browse files
authored
chore: replace pptr with pw (#643)
1 parent be19ae5 commit b64604c

File tree

16 files changed

+23
-466
lines changed

16 files changed

+23
-466
lines changed

.ci/node10/Dockerfile.linux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN apt-get update && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
# Add user so we don't need --no-sandbox.
12-
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
13-
&& mkdir -p /home/pptruser/Downloads \
14-
&& chown -R pptruser:pptruser /home/pptruser
12+
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
13+
&& mkdir -p /home/pwuser/Downloads \
14+
&& chown -R pwuser:pwuser /home/pwuser
1515

1616
# Run everything after as non-privileged user.
17-
USER pptruser
17+
USER pwuser

.ci/node12/Dockerfile.linux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN apt-get update && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
# Add user so we don't need --no-sandbox.
12-
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
13-
&& mkdir -p /home/pptruser/Downloads \
14-
&& chown -R pptruser:pptruser /home/pptruser
12+
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
13+
&& mkdir -p /home/pwuser/Downloads \
14+
&& chown -R pwuser:pwuser /home/pwuser
1515

1616
# Run everything after as non-privileged user.
17-
USER pptruser
17+
USER pwuser

.ci/node8/Dockerfile.linux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN apt-get update && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
# Add user so we don't need --no-sandbox.
12-
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
13-
&& mkdir -p /home/pptruser/Downloads \
14-
&& chown -R pptruser:pptruser /home/pptruser
12+
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
13+
&& mkdir -p /home/pwuser/Downloads \
14+
&& chown -R pwuser:pwuser /home/pwuser
1515

1616
# Run everything after as non-privileged user.
17-
USER pptruser
17+
USER pwuser

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ This will write shared memory files into `/tmp` instead of `/dev/shm`. See [crbu
269269

270270
Seeing other weird errors when launching Chrome? Try running your container
271271
with `docker run --cap-add=SYS_ADMIN` when developing locally. Since the Dockerfile
272-
adds a `pptr` user as a non-privileged user, it may not have all the necessary privileges.
272+
adds a `pwuser` user as a non-privileged user, it may not have all the necessary privileges.
273273

274274
[dumb-init](https://github.com/Yelp/dumb-init) is worth checking out if you're
275275
experiencing a lot of zombies Chrome processes sticking around. There's special

test/chromium/coverage.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
5151
expect(coverage.find(entry => entry.url.startsWith('debugger://'))).not.toBe(null);
5252
expect(coverage.length).toBe(2);
5353
});
54-
it('should ignore pptr internal scripts if reportAnonymousScripts is true', async function({page, server}) {
54+
it('should ignore playwright internal scripts if reportAnonymousScripts is true', async function({page, server}) {
5555
await page.coverage.startJSCoverage({reportAnonymousScripts: true});
5656
await page.goto(server.EMPTY_PAGE);
5757
await page.evaluate('console.log("foo")');

test/chromium/headful.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const util = require('util');
2222
const rmAsync = util.promisify(require('rimraf'));
2323
const mkdtempAsync = util.promisify(fs.mkdtemp);
2424

25-
const TMP_FOLDER = path.join(os.tmpdir(), 'pptr_tmp_folder-');
25+
const TMP_FOLDER = path.join(os.tmpdir(), 'pw_tmp_folder-');
2626

2727
module.exports.describe = function({testRunner, expect, playwright, defaultBrowserOptions, FFOX, CHROMIUM, WEBKIT}) {
2828
const {describe, xdescribe, fdescribe} = testRunner;

test/chromium/launcher.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const rmAsync = util.promisify(require('rimraf'));
2323
const mkdtempAsync = util.promisify(fs.mkdtemp);
2424
const statAsync = util.promisify(fs.stat);
2525

26-
const TMP_FOLDER = path.join(os.tmpdir(), 'pptr_tmp_folder-');
26+
const TMP_FOLDER = path.join(os.tmpdir(), 'pw_tmp_folder-');
2727

2828
module.exports.describe = function({testRunner, expect, defaultBrowserOptions, playwright, WIN}) {
2929
const {describe, xdescribe, fdescribe} = testRunner;

test/elementhandle.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
5858
</svg>
5959
`);
6060
const element = await page.$('#therect');
61-
const pptrBoundingBox = await element.boundingBox();
61+
const pwBoundingBox = await element.boundingBox();
6262
const webBoundingBox = await page.evaluate(e => {
6363
const rect = e.getBoundingClientRect();
6464
return {x: rect.x, y: rect.y, width: rect.width, height: rect.height};
6565
}, element);
66-
expect(pptrBoundingBox).toEqual(webBoundingBox);
66+
expect(pwBoundingBox).toEqual(webBoundingBox);
6767
});
6868
});
6969

test/launcher.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const utils = require('./utils');
2424
const rmAsync = util.promisify(require('rimraf'));
2525
const mkdtempAsync = util.promisify(fs.mkdtemp);
2626

27-
const TMP_FOLDER = path.join(os.tmpdir(), 'pptr_tmp_folder-');
27+
const TMP_FOLDER = path.join(os.tmpdir(), 'pw_tmp_folder-');
2828

2929
module.exports.describe = function({testRunner, expect, defaultBrowserOptions, playwright, playwrightPath, product, CHROMIUM, FFOX, WEBKIT}) {
3030
const {describe, xdescribe, fdescribe} = testRunner;

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const {TestRunner, Reporter} = require('../utils/testrunner/');
2020
const utils = require('./utils');
2121

2222
let parallel = 1;
23-
if (process.env.PPTR_PARALLEL_TESTS)
24-
parallel = parseInt(process.env.PPTR_PARALLEL_TESTS.trim(), 10);
23+
if (process.env.PW_PARALLEL_TESTS)
24+
parallel = parseInt(process.env.PW_PARALLEL_TESTS.trim(), 10);
2525
const parallelArgIndex = process.argv.indexOf('-j');
2626
if (parallelArgIndex !== -1)
2727
parallel = parseInt(process.argv[parallelArgIndex + 1], 10);

0 commit comments

Comments
 (0)