use ;
This commit is contained in:
parent
707c64d4b0
commit
52694692f0
40
.github/actions/run-test/action.yml
vendored
40
.github/actions/run-test/action.yml
vendored
|
|
@ -36,29 +36,23 @@ runs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
- uses: ./.github/actions/enable-microphone-access
|
- uses: ./.github/actions/enable-microphone-access
|
||||||
- run: |
|
- run:
|
||||||
{
|
echo "::group::npm ci";
|
||||||
echo "::group::npm ci"
|
npm ci;
|
||||||
npm ci
|
echo "::endgroup::";
|
||||||
echo "::endgroup::"
|
|
||||||
}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
DEBUG: pw:install
|
DEBUG: pw:install
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
- run: |
|
- run:
|
||||||
{
|
echo "::group::npm run build";
|
||||||
echo "::group::npm run build"
|
npm run build;
|
||||||
npm run build
|
echo "::endgroup::";
|
||||||
echo "::endgroup::"
|
|
||||||
}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: |
|
- run:
|
||||||
{
|
echo "::group::npx playwright install --with-deps";
|
||||||
echo "::group::npx playwright install --with-deps"
|
npx playwright install --with-deps ${{ inputs.browsers-to-install }};
|
||||||
npx playwright install --with-deps ${{ inputs.browsers-to-install }}
|
echo "::endgroup::";
|
||||||
echo "::endgroup::"
|
|
||||||
}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: inputs.shell == 'bash'
|
if: inputs.shell == 'bash'
|
||||||
|
|
@ -84,12 +78,10 @@ runs:
|
||||||
client-id: ${{ inputs.flakiness-client-id }}
|
client-id: ${{ inputs.flakiness-client-id }}
|
||||||
tenant-id: ${{ inputs.flakiness-tenant-id }}
|
tenant-id: ${{ inputs.flakiness-tenant-id }}
|
||||||
subscription-id: ${{ inputs.flakiness-subscription-id }}
|
subscription-id: ${{ inputs.flakiness-subscription-id }}
|
||||||
- run: |
|
- run:
|
||||||
{
|
echo "::group::./utils/upload_flakiness_dashboard.sh";
|
||||||
echo "::group::./utils/upload_flakiness_dashboard.sh"
|
./utils/upload_flakiness_dashboard.sh ./test-results/report.json;
|
||||||
./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
echo "::endgroup::";
|
||||||
echo "::endgroup::"
|
|
||||||
}
|
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Upload blob report
|
- name: Upload blob report
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ test.afterEach(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('click should not leak', async ({ page, toImpl }) => {
|
test('click should not leak', async ({ page, toImpl }) => {
|
||||||
const start = Date.now();
|
|
||||||
await page.setContent(`
|
await page.setContent(`
|
||||||
<button>static button 1</button>
|
<button>static button 1</button>
|
||||||
<button>static button 2</button>
|
<button>static button 2</button>
|
||||||
|
|
@ -103,7 +102,6 @@ test('click should not leak', async ({ page, toImpl }) => {
|
||||||
|
|
||||||
expect(leakedJSHandles()).toBeFalsy();
|
expect(leakedJSHandles()).toBeFalsy();
|
||||||
await checkWeakRefs(toImpl(page), 2, 25);
|
await checkWeakRefs(toImpl(page), 2, 25);
|
||||||
console.log('click should not leak', Date.now() - start);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('fill should not leak', async ({ page, mode, toImpl }) => {
|
test('fill should not leak', async ({ page, mode, toImpl }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue