refactoring
This commit is contained in:
@@ -53,7 +53,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -72,7 +72,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -91,7 +91,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
delete process.env.NODE_ENV;
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -115,7 +115,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -131,7 +131,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter({
|
||||
@@ -163,7 +163,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
};
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
adapter = new PlaywrightAutomationAdapter(
|
||||
@@ -189,7 +189,7 @@ describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const { PlaywrightAutomationAdapter } = await import(
|
||||
'../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
|
||||
const userDataDir = path.join(process.cwd(), 'test-browser-data');
|
||||
@@ -215,7 +215,7 @@ 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/infrastructure/adapters/automation/PlaywrightAutomationAdapter'
|
||||
'packages/infrastructure/adapters/automation'
|
||||
);
|
||||
const { BrowserModeConfigLoader } = await import(
|
||||
'../../../packages/infrastructure/config/BrowserModeConfig'
|
||||
|
||||
Reference in New Issue
Block a user