mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
Revert "feat(test): add URL field to annotations for hyperlink disp… (#31259)
…lay (#30665)"
This commit is contained in:
parent
b24fd0dd27
commit
732e7393d3
@ -71,8 +71,7 @@ import { test, expect } from '@playwright/test';
|
|||||||
test('basic test', {
|
test('basic test', {
|
||||||
annotation: {
|
annotation: {
|
||||||
type: 'issue',
|
type: 'issue',
|
||||||
description: 'feature tags API',
|
description: 'https://github.com/microsoft/playwright/issues/23180',
|
||||||
url: 'https://github.com/microsoft/playwright/issues/23180'
|
|
||||||
},
|
},
|
||||||
}, async ({ page }) => {
|
}, async ({ page }) => {
|
||||||
await page.goto('https://playwright.dev/');
|
await page.goto('https://playwright.dev/');
|
||||||
@ -98,8 +97,7 @@ Test title.
|
|||||||
- `tag` ?<[string]|[Array]<[string]>>
|
- `tag` ?<[string]|[Array]<[string]>>
|
||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]> Annotation type, for example `'issue'`.
|
- `type` <[string]> Annotation type, for example `'issue'`.
|
||||||
- `description` ?<[string]> Optional annotation description.
|
- `description` ?<[string]> Optional annotation description, for example an issue url.
|
||||||
- `url` ?<[string]> Optional for example an issue url.
|
|
||||||
|
|
||||||
Additional test details.
|
Additional test details.
|
||||||
|
|
||||||
@ -442,7 +440,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
Additional details for all tests in the group.
|
Additional details for all tests in the group.
|
||||||
|
|
||||||
@ -571,7 +568,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -627,7 +623,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -681,7 +676,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -733,7 +727,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -789,7 +782,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -847,7 +839,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -900,7 +891,6 @@ Group title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.describe`] for details description.
|
See [`method: Test.describe`] for details description.
|
||||||
|
|
||||||
@ -1119,7 +1109,6 @@ Test title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.(call)`] for test details description.
|
See [`method: Test.(call)`] for test details description.
|
||||||
|
|
||||||
@ -1225,7 +1214,6 @@ Test title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.(call)`] for test details description.
|
See [`method: Test.(call)`] for test details description.
|
||||||
|
|
||||||
@ -1303,7 +1291,6 @@ Test title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.(call)`] for test details description.
|
See [`method: Test.(call)`] for test details description.
|
||||||
|
|
||||||
@ -1449,7 +1436,6 @@ Test title.
|
|||||||
- `annotation` ?<[Object]|[Array]<[Object]>>
|
- `annotation` ?<[Object]|[Array]<[Object]>>
|
||||||
- `type` <[string]>
|
- `type` <[string]>
|
||||||
- `description` ?<[string]>
|
- `description` ?<[string]>
|
||||||
- `url` ?<[string]>
|
|
||||||
|
|
||||||
See [`method: Test.(call)`] for test details description.
|
See [`method: Test.(call)`] for test details description.
|
||||||
|
|
||||||
|
|||||||
@ -52,8 +52,8 @@ const testCase: TestCase = {
|
|||||||
projectName: 'chromium',
|
projectName: 'chromium',
|
||||||
location: { file: 'test.spec.ts', line: 42, column: 0 },
|
location: { file: 'test.spec.ts', line: 42, column: 0 },
|
||||||
annotations: [
|
annotations: [
|
||||||
{ type: 'annotation', description: 'Annotation text', url: 'example url' },
|
{ type: 'annotation', description: 'Annotation text' },
|
||||||
{ type: 'annotation', description: 'Another annotation text', url: 'Another example url' },
|
{ type: 'annotation', description: 'Another annotation text' },
|
||||||
],
|
],
|
||||||
tags: [],
|
tags: [],
|
||||||
outcome: 'expected',
|
outcome: 'expected',
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export type TestFileSummary = {
|
|||||||
stats: Stats;
|
stats: Stats;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TestCaseAnnotation = { type: string, description?: string, url?: string};
|
export type TestCaseAnnotation = { type: string, description?: string };
|
||||||
|
|
||||||
export type TestCaseSummary = {
|
export type TestCaseSummary = {
|
||||||
testId: string,
|
testId: string,
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export type FixturesWithLocation = {
|
|||||||
fixtures: Fixtures;
|
fixtures: Fixtures;
|
||||||
location: Location;
|
location: Location;
|
||||||
};
|
};
|
||||||
export type Annotation = { type: string, description?: string, url?: string };
|
export type Annotation = { type: string, description?: string };
|
||||||
|
|
||||||
export const defaultTimeout = 30000;
|
export const defaultTimeout = 30000;
|
||||||
|
|
||||||
|
|||||||
6
packages/playwright/types/test.d.ts
vendored
6
packages/playwright/types/test.d.ts
vendored
@ -2198,8 +2198,7 @@ interface TestFunction<TestArgs> {
|
|||||||
* test('basic test', {
|
* test('basic test', {
|
||||||
* annotation: {
|
* annotation: {
|
||||||
* type: 'issue',
|
* type: 'issue',
|
||||||
* description: 'feature tags API',
|
* description: 'https://github.com/microsoft/playwright/issues/23180',
|
||||||
* url: 'https://github.com/microsoft/playwright/issues/23180'
|
|
||||||
* },
|
* },
|
||||||
* }, async ({ page }) => {
|
* }, async ({ page }) => {
|
||||||
* await page.goto('https://playwright.dev/');
|
* await page.goto('https://playwright.dev/');
|
||||||
@ -2275,8 +2274,7 @@ interface TestFunction<TestArgs> {
|
|||||||
* test('basic test', {
|
* test('basic test', {
|
||||||
* annotation: {
|
* annotation: {
|
||||||
* type: 'issue',
|
* type: 'issue',
|
||||||
* description: 'feature tags API',
|
* description: 'https://github.com/microsoft/playwright/issues/23180',
|
||||||
* url: 'https://github.com/microsoft/playwright/issues/23180'
|
|
||||||
* },
|
* },
|
||||||
* }, async ({ page }) => {
|
* }, async ({ page }) => {
|
||||||
* await page.goto('https://playwright.dev/');
|
* await page.goto('https://playwright.dev/');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user