test: skip tests for Electron / Android (#16731)
This commit is contained in:
parent
e344fe60e7
commit
26df4cc00e
|
|
@ -300,6 +300,10 @@ test('should print selector syntax error', async ({ page }) => {
|
|||
expect(error.message).toContain(`Unexpected token "]" while parsing selector "row]"`);
|
||||
});
|
||||
|
||||
test.describe(() => {
|
||||
test.skip(({ isAndroid }) => isAndroid, 'server.EMPTY_PAGE is the emulator address 10.0.2.2');
|
||||
test.skip(({ isElectron }) => isElectron, 'Protocol error (Storage.getCookies): Browser context management is not supported.');
|
||||
|
||||
test('toBeOK', async ({ page, server }) => {
|
||||
const res = await page.request.get(server.EMPTY_PAGE);
|
||||
await expect(res).toBeOK();
|
||||
|
|
@ -310,6 +314,7 @@ test('not.toBeOK', async ({ page, server }) => {
|
|||
await expect(res).not.toBeOK();
|
||||
});
|
||||
|
||||
|
||||
test('toBeOK fail with invalid argument', async ({ page }) => {
|
||||
const error = await (expect(page) as any).toBeOK().catch(e => e);
|
||||
expect(error.message).toContain('toBeOK can be only used with APIResponse object');
|
||||
|
|
@ -363,3 +368,4 @@ test.describe('toBeOK should print response with text content type when fails',
|
|||
expect(error.message).not.toContain(`Image content type error`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue