Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/src/cards.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { handleConsentPopup, waitFor } from './util';
import { handleConsentPopup, waitFor } from './utils';

test.describe('Testing for cards shortcode', () => {
test.beforeEach(async ({ page }) => {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions tests/src/constants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './constants';
2 changes: 1 addition & 1 deletion tests/src/footer.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { handleConsentPopup, waitFor } from './util';
import { handleConsentPopup, waitFor } from './utils';

test.describe('Smoke test for footer', () => {
test.beforeEach(async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/header.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { handleConsentPopup, waitFor } from './util';
import { handleConsentPopup, waitFor } from './utils';

test.describe('Smoke test for header', () => {
test.beforeEach(async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/product-landing.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test } from '@playwright/test';
import { runSmokeTestOnPage } from './util';
import { runSmokeTestOnPage } from './utils';

test.describe('Smoke test for landing page', () => {
test('product landing page renders', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/sidebar.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { handleConsentPopup, runSmokeTestOnPage, waitFor } from './util';
import { handleConsentPopup, runSmokeTestOnPage, waitFor } from './utils';

async function openPage(page, sidebarPage) {
// Find all toggles
Expand Down
2 changes: 1 addition & 1 deletion tests/src/tabs.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { handleConsentPopup, waitFor } from './util';
import { handleConsentPopup, waitFor } from './utils';

test.describe('Testing for tabs shortcode', () => {
test.beforeEach(async ({ page }) => {
Expand Down
1 change: 1 addition & 0 deletions tests/src/utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './utils';
2 changes: 1 addition & 1 deletion tests/src/util.js → tests/src/utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@playwright/test';
import { TIMEOUT } from './constants.js';
import { TIMEOUT } from '../constants';

export async function runSmokeTestOnPage(page) {
/* Ensure each page follows the following dom structure */
Expand Down
Loading