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

[5.2] Fix Postgres Problem in our testing #44303

Draft
wants to merge 7 commits into
base: 5.2-dev
Choose a base branch
from
Draft
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
describe('Test in backend that the privacy consent component', () => {
beforeEach(() => cy.doAdministratorLogin());
afterEach(() => {
cy.task('queryDB', 'DELETE FROM #__privacy_consents');
cy.task('queryDB', "DELETE FROM #__users WHERE name = 'test user'");
cy.task('queryDB', 'DELETE FROM #__privacy_consents');
rdeutz marked this conversation as resolved.
Show resolved Hide resolved
cy.task('queryDB', "DELETE FROM #__users WHERE name LIKE '%test user%'").then(() => {
cy.task('queryDB', 'DELETE FROM #__user_usergroup_map WHERE user_id NOT IN (SELECT id FROM #__users)');
});
cy.get('.js-stools-btn-clear').click({ force: true });
});

Expand Down