Skip to content

Commit

Permalink
update web.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
blckclov3r committed Apr 13, 2024
1 parent 72bf63f commit 2676027
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/web.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@ async function clearInput(page: Page, comboboxName: string) {
await page.locator('.MuiBox-root > button').first().click();
}

test.describe('index.ts', () => {
test('main-municipality', async ({page}) => {
test.describe('main', () => {
test('municipality', async ({page}) => {
await setup(page);
await clickButton(page, 'Main');
await selectOptionAndSubmit(page, 'municipality', 'Talisay');
await clearInput(page, 'municipality');
});

test('main-region', async ({page}) => {
test('region', async ({page}) => {
await setup(page);
await clickButton(page, 'Main');
await selectOptionAndSubmit(page, 'region', 'VII');
await clearInput(page, 'region');
});

test('main-location', async ({page}) => {
test('location', async ({page}) => {
await setup(page);
await clickButton(page, 'Main');
await selectOptionAndSubmit(page, 'location', 'Cebu');
await clearInput(page, 'location');
});

test('main-postcode', async ({page}) => {
test('postcode', async ({page}) => {
await setup(page);
await clickButton(page, 'Main');
await selectOptionAndSubmit(page, 'post_code', '6045');
Expand Down

0 comments on commit 2676027

Please sign in to comment.