Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments pushed via testInfo.attachments.push(...) are not published by Playwright testing reporter #139

Open
AdamOakman opened this issue Oct 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AdamOakman
Copy link

Is your feature request related to a problem? Please describe.
Attachments pushed via testInfo.attachments.push(...) are visible in the regular HTML Report but not visible in Playwright Testing Service report summary

Describe the solution you'd like
Expose testInfo.attachments.push(...) attachments in the same way they are available in HTML reports.

Additional context
playwright.service.config.ts

import { getServiceConfig, ServiceOS } from '@azure/microsoft-playwright-testing';
import { defineConfig } from '@playwright/test';
import config from './playwright.config';
import dotenv from 'dotenv';

dotenv.config({ override: true });

/* Learn more about service configuration at https://aka.ms/mpt/config */
export default defineConfig(
    config,
    getServiceConfig(config, {
        useCloudHostedBrowsers: true,
        serviceAuthType: 'ACCESS_TOKEN',
        exposeNetwork: '<loopback>',
        timeout: 30000,
        os: ServiceOS.LINUX
    }),
    {
        workers: 25,
        reporter: [
            ['@azure/microsoft-playwright-testing/reporter'],
            ['list'],
            ['html', { outputFolder: './reports/html', open: 'never' }],
            ['./e2e-tests/custom-reporter'],
            ['./e2e-tests/junit-reporter', { outputFile: './reports/junit/test-results.xml' }]
        ]
    }
);
@AdamOakman AdamOakman added the enhancement New feature or request label Oct 25, 2024
@puagarwa
Copy link
Member

@AdamOakman We have identified the issue and will fix it soon and update here.

@puagarwa puagarwa assigned puagarwa and unassigned vvs11 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants