Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): fix transfer token tests #19672

Merged
merged 1 commit into from Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -182,7 +182,7 @@ const EditView = () => {
tokenType: TRANSFER_TOKEN_TYPE,
});

navigate(res.data.id.toString(), {
navigate(`../transfer-tokens/${res.data.id.toString()}`, {
replace: true,
state: { transferToken: res.data },
});
Expand Down
1 change: 1 addition & 0 deletions packages/core/strapi/src/cli/commands/develop.ts
Expand Up @@ -34,6 +34,7 @@ const command: StrapiCommand = ({ ctx }) => {
.option('--ignore-prompts', 'Ignore all prompts', false)
.option('--polling', 'Watch for file changes in network directories', false)
.option('--watch-admin', 'Watch the admin panel for hot changes', true)
.option('--no-watch-admin', 'Do not watch the admin panel for hot changes')
.option('--open', 'Open the admin in your browser', true)
.description('Start your Strapi application in development mode')
.action(async (options: DevelopCLIOptions) => {
Expand Down
2 changes: 1 addition & 1 deletion playwright.base.config.js
Expand Up @@ -110,7 +110,7 @@ const createConfig = ({ port, testDir, appDir }) => ({

/* Run your local dev server before starting the tests */
webServer: {
command: `cd ${appDir} && npm run develop`,
command: `cd ${appDir} && npm run develop -- --no-watch-admin`,
url: `http://127.0.0.1:${port}`,
/* default Strapi server startup timeout to 160s */
timeout: getEnvNum(process.env.PLAYWRIGHT_WEBSERVER_TIMEOUT, 160 * 1000),
Expand Down