Skip to content

Commit

Permalink
fix: front office urls
Browse files Browse the repository at this point in the history
ref: #396
  • Loading branch information
Apoorva64 committed Jun 14, 2023
1 parent 2ab93f9 commit f0379ca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/front-end/front-office-e2e/src/header/header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect } from '@playwright/test';
import { environment, protocol } from '@webonjour/shared/environments';

test('should redirect to back office', async ({ page }) => {
await page.goto('/');
await page.goto('.');
await expect(page.locator('.header-button')).toHaveAttribute(
'href',
`${protocol(environment.back_office.secure)}://${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('Help page', () => {
await expect(helpPage.page.url()).toBe(
`${protocol(environment.front_office.secure)}://${
environment.front_office.domain
}/#/quiz-answer`
}quiz-answer`
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { frontOfficeTest as test } from '@webonjour/fixtures-e2e';
import { environment, protocol } from '@webonjour/shared/environments';

test.describe('Learning Card Selection', () => {
test('should have url /#/learning-card', async ({
test('should have url /learning-card', async ({
fixtures: { learningCardSelectionPage },
}) => {
await learningCardSelectionPage.goto();
await expect(learningCardSelectionPage.page.url()).toBe(
`${protocol(environment.front_office.secure)}://${
environment.front_office.domain
}/#/learning-card`
}learning-card`
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test.describe('Floor Selection', () => {
await expect(floorSelectionPage.page.url()).toBe(
`${protocol(environment.front_office.secure)}://${
environment.front_office.domain
}/#/list-quiz`
}list-quiz`
);
});
});
4 changes: 2 additions & 2 deletions apps/front-end/front-office-e2e/src/question/question.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe('Quiz Selection', () => {
);
});

test('should redirect to /#/result when done', async ({
test('should redirect to /result when done', async ({
fixtures: { questionSelectionPage },
}) => {
await questionSelectionPage.goto(0, 0, 0);
Expand All @@ -43,7 +43,7 @@ test.describe('Quiz Selection', () => {
await expect(questionSelectionPage.page).toHaveURL(
`${protocol(environment.front_office.secure)}://${
environment.front_office.domain
}/#/result`
}result`
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { frontOfficeTest as test } from '@webonjour/fixtures-e2e';
import { environment, protocol } from '@webonjour/shared/environments';

test.describe('Quiz Selection', () => {
test('should redirect to /#/quiz-answer', async ({
test('should redirect to quiz-answer', async ({
fixtures: { quizSelectionPage },
}) => {
await quizSelectionPage.goto(0, 0);
Expand All @@ -12,7 +12,7 @@ test.describe('Quiz Selection', () => {
await expect(quizSelectionPage.page.url()).toBe(
`${protocol(environment.front_office.secure)}://${
environment.front_office.domain
}/#/quiz-answer`
}quiz-answer`
);
});
});

0 comments on commit f0379ca

Please sign in to comment.