-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously: - test packages are split by features - yet they all depend on drupal or gatsby app - so we run most of the tests anyway - as soon as any package change that the app depends on Now: - test packages are split by apps - we spend less time on spinning up gatsby
- Loading branch information
Showing
61 changed files
with
190 additions
and
3,549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/tests/silverback-drupal/playwright.config.mutating.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from '@playwright/test'; | ||
|
||
import { config } from './playwright.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
testDir: './specs-mutating', | ||
fullyParallel: false, | ||
workers: 1, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { defineConfig, devices, PlaywrightTestConfig } from '@playwright/test'; | ||
|
||
export const config: PlaywrightTestConfig = { | ||
testDir: './specs', | ||
webServer: [ | ||
{ | ||
command: | ||
'pnpm run --filter "@-amazeelabs/silverback-drupal" start > /tmp/drupal.log 2>&1', | ||
port: 8888, | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
], | ||
fullyParallel: true, | ||
forbidOnly: !!process.env.CI, | ||
maxFailures: 1, | ||
retries: process.env.CI ? 1 : 0, | ||
use: { | ||
trace: 'on-first-retry', | ||
}, | ||
reporter: 'list', | ||
projects: [ | ||
{ | ||
name: 'setup', | ||
testMatch: /setup\.ts/, | ||
}, | ||
{ | ||
name: 'chromium', | ||
testMatch: /\.*.spec\.ts/, | ||
use: { ...devices['Desktop Chrome'] }, | ||
dependencies: ['setup'], | ||
}, | ||
], | ||
// Initial gatsby build can take long. | ||
timeout: 90_000, | ||
}; | ||
|
||
export default defineConfig(config); |
4 changes: 2 additions & 2 deletions
4
...nberg/specs-mutating/entity-usage.spec.ts → ...rupal/specs-mutating/entity-usage.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
packages/tests/silverback-gatsby/playwright.config.mutating.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import { playwrightConfigMutatingDefaults } from '@amazeelabs/silverback-playwright'; | ||
import { defineConfig } from '@playwright/test'; | ||
|
||
export default defineConfig(playwrightConfigMutatingDefaults); | ||
import { config } from './playwright.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
testDir: './specs-mutating', | ||
fullyParallel: false, | ||
workers: 1, | ||
}); |
Oops, something went wrong.