mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
tests(accessibility): Remove unused browser goldens (#758)
This commit is contained in:
parent
1b012e50e9
commit
d590ab93fa
@ -234,18 +234,10 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
|
|||||||
this is the inner content
|
this is the inner content
|
||||||
<img alt="yo" src="fakeimg.png">
|
<img alt="yo" src="fakeimg.png">
|
||||||
</div>`);
|
</div>`);
|
||||||
const golden = FFOX ? {
|
const golden = {
|
||||||
role: 'textbox',
|
|
||||||
name: 'my favorite textbox',
|
|
||||||
value: 'this is the inner content yo'
|
|
||||||
} : CHROMIUM ? {
|
|
||||||
role: 'textbox',
|
role: 'textbox',
|
||||||
name: 'my favorite textbox',
|
name: 'my favorite textbox',
|
||||||
value: 'this is the inner content '
|
value: 'this is the inner content '
|
||||||
} : {
|
|
||||||
role: 'textbox',
|
|
||||||
name: 'my favorite textbox',
|
|
||||||
value: 'this is the inner content ',
|
|
||||||
};
|
};
|
||||||
const snapshot = await page.accessibility.snapshot();
|
const snapshot = await page.accessibility.snapshot();
|
||||||
expect(snapshot.children[0]).toEqual(golden);
|
expect(snapshot.children[0]).toEqual(golden);
|
||||||
@ -270,11 +262,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
|
|||||||
this is the inner content
|
this is the inner content
|
||||||
<img alt="yo" src="fakeimg.png">
|
<img alt="yo" src="fakeimg.png">
|
||||||
</div>`);
|
</div>`);
|
||||||
const golden = FFOX ? {
|
const golden = {
|
||||||
role: 'checkbox',
|
|
||||||
name: 'this is the inner content yo',
|
|
||||||
checked: true
|
|
||||||
} : {
|
|
||||||
role: 'checkbox',
|
role: 'checkbox',
|
||||||
name: 'this is the inner content yo',
|
name: 'this is the inner content yo',
|
||||||
checked: true
|
checked: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user