mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
Not dead code, this caused these tests to fail in firefox. Reverts #758
This commit is contained in:
parent
d590ab93fa
commit
f4640d145f
@ -234,10 +234,18 @@ 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 = {
|
const golden = FFOX ? {
|
||||||
|
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);
|
||||||
@ -262,7 +270,11 @@ 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 = {
|
const golden = FFOX ? {
|
||||||
|
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…
Reference in New Issue
Block a user