wip
This commit is contained in:
@@ -77,7 +77,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -96,7 +96,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -115,7 +115,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
delete process.env.NODE_ENV;
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -139,7 +139,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -155,7 +155,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -187,7 +187,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
};
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter(
|
||||
@@ -213,7 +213,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
const userDataDir = path.join(process.cwd(), 'test-browser-data');
|
||||
@@ -239,10 +239,10 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
it('reads mode from injected loader and passes headless flag to launcher accordingly', async () => {
|
||||
process.env.NODE_ENV = 'development';
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'packages/automation-infrastructure/adapters/automation'
|
||||
'packages/automation/infrastructure/adapters/automation'
|
||||
);
|
||||
const { BrowserModeConfigLoader } = await import(
|
||||
'../../../packages/automation-infrastructure/config/BrowserModeConfig'
|
||||
'../../../packages/automation/infrastructure/config/BrowserModeConfig'
|
||||
);
|
||||
|
||||
// Create loader and set to headed
|
||||
|
||||
Reference in New Issue
Block a user