Skip to content

Commit d00a66b

Browse files
committed
Tests: Fixed linter issues
1 parent 2f8fc3c commit d00a66b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</a>
1919
</div>
2020

21-
<div class="header__product-selector">
21+
<div class="header__product-selector" data-testid="header__product-selector">
2222
{{ $nginxProducts := slice
2323
(dict "title" "NGINX One Console" "url" "/nginx-one" "type" "nginx-one")
2424
(dict "title" "NGINX Plus" "url" "/nginx" "type" "nginx-one")

tests/src/footer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from '@playwright/test';
1+
import { expect, test } from '@playwright/test';
22

33
test.describe('Smoke test for footer', () => {
44
test.beforeEach(async ({ page }) => {

tests/src/header.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from '@playwright/test';
1+
import { expect, test } from '@playwright/test';
22

33
test.describe('Smoke test for header', () => {
44
test.beforeEach(async ({ page }) => {

tests/src/sidebar.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from '@playwright/test';
1+
import { expect, test } from '@playwright/test';
22
import { runSmokeTestOnPage } from './util';
33

44
async function openPage(page, sidebarPage) {
@@ -43,7 +43,7 @@ async function openPage(page, sidebarPage) {
4343

4444
test.describe('Smoke test for sidebar', () => {
4545
test.beforeEach(async ({ page }) => {
46-
await page.goto(`/test-product/`);
46+
await page.goto('/test-product/');
4747
});
4848

4949
test('should test sidebar renders', async ({ page }) => {

0 commit comments

Comments
 (0)