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

Replace cleanup fetch requests with app API route. #901

Open
OliverDudgeon opened this issue Feb 6, 2023 · 1 comment
Open

Replace cleanup fetch requests with app API route. #901

OliverDudgeon opened this issue Feb 6, 2023 · 1 comment
Assignees
Labels

Comments

@OliverDudgeon
Copy link
Contributor

The fetch requests made by the bootstrap test often fail (Unexpected end of JSON — a playwright issue — N.B. should find a GitHub issue for this). Instead a API route could be created in the app (disabled in production) that would cascade delete all projects -> products -> units -> organisations. This could be called as a "test" in Playwright via this pattern.

await page.route('**/*', route => {
  route.fulfill({
    status: 404,
    contentType: 'text/plain',
    body: 'Not Found!'
  });
});
@OliverDudgeon OliverDudgeon self-assigned this Feb 6, 2023
@OliverDudgeon
Copy link
Contributor Author

Tests seem more reliable at the moment. No this is low priority for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant