Skip to content

Commit

Permalink
AE-2316: Fix e2e tests in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-juhohaa committed Oct 29, 2024
1 parent f989321 commit 3c06b2d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ context('Laatija', () => {
"update etp.energiatodistus set voimassaolo_paattymisaika = now() - interval '2 days' where id = 1;";

cy.task('executeQuery', { query, applicationName }).then(() => {
cy.wait(1000);
cy.request(
'POST',
`${backendUrl}/api/internal/energiatodistukset/anonymize-and-delete-expired`
Expand Down Expand Up @@ -140,6 +141,7 @@ context('Paakayttaja', () => {
const query =
"update etp.energiatodistus set voimassaolo_paattymisaika = now() - interval '2 days' where id = 1;";
cy.task('executeQuery', { query, applicationName }).then(() => {
cy.wait(1000);
cy.request(
'POST',
`${backendUrl}/api/internal/energiatodistukset/anonymize-and-delete-expired`
Expand Down Expand Up @@ -223,6 +225,7 @@ context('Public', () => {
const query =
"update etp.energiatodistus set voimassaolo_paattymisaika = now() - interval '2 days' where id = 1;";
cy.task('executeQuery', { query, applicationName }).then(() => {
cy.wait(1000);
cy.request(
'POST',
`${backendUrl}/api/internal/energiatodistukset/anonymize-and-delete-expired`
Expand Down

0 comments on commit 3c06b2d

Please sign in to comment.