wip
This commit is contained in:
@@ -8,6 +8,8 @@ import { FixtureServer, getAllStepFixtureMappings, PlaywrightAutomationAdapter }
|
||||
declare const getComputedStyle: any;
|
||||
declare const document: any;
|
||||
|
||||
const logger = console as any;
|
||||
|
||||
describe('FixtureServer integration', () => {
|
||||
let server: FixtureServer;
|
||||
let adapter: PlaywrightAutomationAdapter;
|
||||
@@ -22,7 +24,7 @@ describe('FixtureServer integration', () => {
|
||||
headless: true,
|
||||
timeout: 5000,
|
||||
baseUrl,
|
||||
});
|
||||
}, logger);
|
||||
|
||||
const connectResult = await adapter.connect();
|
||||
expect(connectResult.success).toBe(true);
|
||||
@@ -86,7 +88,7 @@ describe('FixtureServer integration', () => {
|
||||
const disconnectedAdapter = new PlaywrightAutomationAdapter({
|
||||
headless: true,
|
||||
timeout: 1000,
|
||||
});
|
||||
}, logger);
|
||||
|
||||
const navResult = await disconnectedAdapter.navigateToPage('http://localhost:9999');
|
||||
expect(navResult.success).toBe(false);
|
||||
@@ -105,7 +107,7 @@ describe('FixtureServer integration', () => {
|
||||
it('reports connected state correctly', async () => {
|
||||
expect(adapter.isConnected()).toBe(true);
|
||||
|
||||
const newAdapter = new PlaywrightAutomationAdapter({ headless: true });
|
||||
const newAdapter = new PlaywrightAutomationAdapter({ headless: true }, logger);
|
||||
expect(newAdapter.isConnected()).toBe(false);
|
||||
|
||||
await newAdapter.connect();
|
||||
|
||||
Reference in New Issue
Block a user