Skip to content

Commit

Permalink
minor changes on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
osundwajeff committed Jan 22, 2024
1 parent 3efcb16 commit 20bd3e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions playwright/ci-test/tests/06-create-new-site.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ test('test', async ({ page }) => {
await page.getByRole('button', { name: 'next' }).click();
await page.locator('#checkbox-2').check();
//await expect(page.getByText('17.00117.00')).toBeVisible();
//await page.getByRole('button', { name: 'Save' }).click();
//await expect(page.getByRole('heading', { name: 'Observation Saved.' })).toBeVisible();
await page.getByRole('button', { name: 'Save' }).click();
await expect(page.getByRole('heading', { name: 'Observation Saved.' })).toBeVisible();
//await expect(page.getByRole('dialog')).toContainText('The record was saved successfully.');
//await page.getByRole('button', { name: 'Ok' }).click();
//await page.getByRole('img', { name: 'close' }).click();
Expand Down
6 changes: 3 additions & 3 deletions playwright/ci-test/tests/07-use-existing-site.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ test.describe('test - use existing site', () => {
await page.locator('input[name="electricalconduOne"]').click();
await page.locator('input[name="electricalconduOne"]').fill('2');
await page.getByRole('button', { name: 'next' }).click();
await page.locator('#checkbox-1').check();
//await page.getByRole('button', { name: 'Save' }).click();
//await expect(page.getByRole('heading', { name: 'Observation Saved.' })).toBeVisible();
await page.locator('#checkbox-2').check();
await page.getByRole('button', { name: 'Save' }).click();
await expect(page.getByRole('heading', { name: 'Observation Saved.' })).toBeVisible();
//await expect(page.getByRole('dialog')).toContainText('The record was saved successfully.');
//await page.getByRole('button', { name: 'Ok' }).click();
//await page.getByRole('img', { name: 'close' }).click();
Expand Down

0 comments on commit 20bd3e7

Please sign in to comment.