Skip to content

Commit

Permalink
change image
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Aug 15, 2024
1 parent 0c0e68c commit e2ef9de
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
},
testDir: './tests',
timeout: 30000,
fullyParallel: true,
fullyParallel: false,

retries: 2,
workers: 1,
Expand Down
64 changes: 32 additions & 32 deletions packages/e2e/tests/create-profile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,35 +132,35 @@ test('Create Profile Funnel Basic Flow', async ({ page }) => {
});
});

// test('Previously selected values should be kept when going back between steps. ', async ({ page }) => {
// await test.step('Set MBTI and move to step 2', async () => {
// await page.goto(`/create-profile?${tokenParams}`);

// const nextButtonText = page.getByText('다음');
// const EButton = page.getByRole('button', { name: 'E', exact: true });
// const SButton = page.getByRole('button', { name: 'S', exact: true });
// const FButton = page.getByRole('button', { name: 'F', exact: true });
// const JButton = page.getByRole('button', { name: 'J', exact: true });
// await EButton.click();
// await SButton.click();
// await FButton.click();
// await JButton.click();
// await nextButtonText.click();
// await page.waitForURL('**/create-profile?step=2');
// });
// await test.step('ESFJ buttons should be selected default, if user goes back to step 1', async () => {
// const goBackButton = page.getByLabel('go-back-icon');
// await goBackButton.click();
// await page.waitForURL(`/create-profile`);
// const previouslySelectedButtons = [
// page.getByRole('button', { name: 'E', exact: true }),
// page.getByRole('button', { name: 'S', exact: true }),
// page.getByRole('button', { name: 'F', exact: true }),
// page.getByRole('button', { name: 'J', exact: true }),
// ];

// previouslySelectedButtons.forEach(button => {
// expect(button).toHaveAttribute('aria-selected', 'true');
// });
// });
// });
test('Previously selected values should be kept when going back between steps. ', async ({ page }) => {
await test.step('Set MBTI and move to step 2', async () => {
await page.goto(`/create-profile?${tokenParams}`);

const nextButtonText = page.getByText('다음');
const EButton = page.getByRole('button', { name: 'E', exact: true });
const SButton = page.getByRole('button', { name: 'S', exact: true });
const FButton = page.getByRole('button', { name: 'F', exact: true });
const JButton = page.getByRole('button', { name: 'J', exact: true });
await EButton.click();
await SButton.click();
await FButton.click();
await JButton.click();
await nextButtonText.click();
await page.waitForURL('**/create-profile?step=2');
});
await test.step('ESFJ buttons should be selected default, if user goes back to step 1', async () => {
const goBackButton = page.getByLabel('go-back-icon');
await goBackButton.click();
await page.waitForURL(`/create-profile`);
const previouslySelectedButtons = [
page.getByRole('button', { name: 'E', exact: true }),
page.getByRole('button', { name: 'S', exact: true }),
page.getByRole('button', { name: 'F', exact: true }),
page.getByRole('button', { name: 'J', exact: true }),
];

previouslySelectedButtons.forEach(button => {
expect(button).toHaveAttribute('aria-selected', 'true');
});
});
});

0 comments on commit e2ef9de

Please sign in to comment.