diff --git a/playwright-test/manual-mode/tests/login.spec.ts b/playwright-test/manual-mode/tests/login.spec.ts index 83c40f4..fd2c562 100644 --- a/playwright-test/manual-mode/tests/login.spec.ts +++ b/playwright-test/manual-mode/tests/login.spec.ts @@ -16,27 +16,27 @@ import { test, expect } from './fixtures' */ test.describe('Login page', () => { - test('should login', async ({ page }) => { - await page.goto('https://the-internet.herokuapp.com/login') + test('should login', async ({ page }) => { + await page.goto('https://the-internet.herokuapp.com/login') - /* Analyze after navigation to the page */ - await page.axeWatcher.analyze(); + /* Analyze after navigation to the page */ + await page.axeWatcher.analyze() - await page.locator('#username').fill('tomsmith') - await page.locator('#password').fill('SuperSecretPassword!') + await page.locator('#username').fill('tomsmith') + await page.locator('#password').fill('SuperSecretPassword!') - /* starts auto-analyze to true */ - await page.axeWatcher.start(); + /* starts auto-analyze to true */ + await page.axeWatcher.start() - await page.locator('button[type="submit"]').click() - const flash = await page.waitForSelector('#flash') + await page.locator('button[type="submit"]').click() + const flash = await page.waitForSelector('#flash') - /* stops auto-analyze */ - await page.axeWatcher.stop(); + /* stops auto-analyze */ + await page.axeWatcher.stop() - /* Analyze after form submission */ - await page.axeWatcher.analyze(); + /* Analyze after form submission */ + await page.axeWatcher.analyze() - await expect(flash).not.toBeNull() - }) + await expect(flash).not.toBeNull() + }) }) diff --git a/playwright/manual-mode/tests/login.js b/playwright/manual-mode/tests/login.js index 4a97fb2..2380f30 100644 --- a/playwright/manual-mode/tests/login.js +++ b/playwright/manual-mode/tests/login.js @@ -43,7 +43,6 @@ describe('My Application', () => { await page.close() }) - /* Lets see the number of page state calculation As the auto-analyze is false, it will not analyze automatically diff --git a/webdriverjs/manual-mode/tests/login.js b/webdriverjs/manual-mode/tests/login.js index 006ff29..bf9a72a 100644 --- a/webdriverjs/manual-mode/tests/login.js +++ b/webdriverjs/manual-mode/tests/login.js @@ -34,7 +34,6 @@ describe('My Login Application', () => { browser = wrapWebdriver(browser, controller) }) - /* Lets see the number of page state calculation @@ -63,7 +62,6 @@ describe('My Login Application', () => { await username.sendKeys('tomsmith') await password.sendKeys('SuperSecretPassword!') - /* Start automatic axe analysis. */ await controller.start()