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

533 create the backend for tours #534

Merged
merged 14 commits into from
Feb 11, 2025
Prev Previous commit
test: fix tests
DeboraSerra committed Feb 11, 2025

Verified

This commit was signed with the committer’s verified signature.
commit 2e6a8e1032088e163ee10fdeb6ffddd582daebdf
8 changes: 4 additions & 4 deletions backend/src/test/e2e/tour.test.mjs
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ describe('E2e tests tour', () => {
.execute(app)
.post('/api/tour/add_tour')
.set('Authorization', `Bearer ${token}`)
.send({ ...tour().invalidbuttonBackgroundColor().build(), steps: [] });
.send({ ...tour().invalidButtonBackgroundColor().build(), steps: [] });
expect(res).to.have.status(400);
const body = res.body;
expect(body).to.be.deep.equal({ errors: ['Invalid value for buttonBackgroundColor'] });
@@ -134,7 +134,7 @@ describe('E2e tests tour', () => {
.execute(app)
.post('/api/tour/add_tour')
.set('Authorization', `Bearer ${token}`)
.send({ ...tour().invalidfinalButtonText().build(), steps: [] });
.send({ ...tour().invalidFinalButtonText().build(), steps: [] });
expect(res).to.have.status(400);
const body = res.body;
expect(body).to.be.deep.equal({ errors: ['Invalid value for finalButtonText'] });
@@ -324,7 +324,7 @@ describe('E2e tests tour', () => {
.execute(app)
.put('/api/tour/edit_tour/1')
.set('Authorization', `Bearer ${token}`)
.send({ ...tour().invalidbuttonBackgroundColor().build(), steps: [] });
.send({ ...tour().invalidButtonBackgroundColor().build(), steps: [] });
expect(res).to.have.status(400);
const body = res.body;
expect(body).to.be.deep.equal({ errors: ['Invalid value for buttonBackgroundColor'] });
@@ -374,7 +374,7 @@ describe('E2e tests tour', () => {
.execute(app)
.put('/api/tour/edit_tour/1')
.set('Authorization', `Bearer ${token}`)
.send({ ...tour().invalidfinalButtonText().build(), steps: [] });
.send({ ...tour().invalidFinalButtonText().build(), steps: [] });
expect(res).to.have.status(400);
const body = res.body;
expect(body).to.be.deep.equal({ errors: ['Invalid value for finalButtonText'] });