Skip to content

Commit

Permalink
🤖 Automated formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nayanrajDQ authored and github-actions[bot] committed Jan 9, 2025
1 parent 296915d commit 6492e9b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
32 changes: 16 additions & 16 deletions playwright-test/manual-mode/tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
1 change: 0 additions & 1 deletion playwright/manual-mode/tests/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions webdriverjs/manual-mode/tests/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('My Login Application', () => {
browser = wrapWebdriver(browser, controller)
})


/*
Lets see the number of page state calculation
Expand Down Expand Up @@ -63,7 +62,6 @@ describe('My Login Application', () => {
await username.sendKeys('tomsmith')
await password.sendKeys('SuperSecretPassword!')


/* Start automatic axe analysis. */
await controller.start()

Expand Down

0 comments on commit 6492e9b

Please sign in to comment.