Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: move page-clock tests into library/ tests folder (#31752)

Max Schmitt297b1a8afeb2
diff --git a/tests/page/page-clock.frozen.spec.ts b/tests/library/page-clock.frozen.spec.ts
similarity index 93%
rename from tests/page/page-clock.frozen.spec.ts
rename to tests/library/page-clock.frozen.spec.ts
index b9b319cd63..055d70464f 100644
--- a/tests/page/page-clock.frozen.spec.ts
+++ b/tests/library/page-clock.frozen.spec.ts
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-import { test as it, expect } from './pageTest';
+import { browserTest as it, expect } from '../config/browserTest';
it('clock should be frozen', async ({ page }) => {
it.skip(process.env.PW_CLOCK !== 'frozen');
diff --git a/tests/page/page-clock.spec.ts b/tests/library/page-clock.spec.ts
similarity index 99%
rename from tests/page/page-clock.spec.ts
rename to tests/library/page-clock.spec.ts
index 6c1ed88996..d541d5d135 100644
--- a/tests/page/page-clock.spec.ts
+++ b/tests/library/page-clock.spec.ts
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-import { test, expect } from './pageTest';
+import { browserTest as test, expect } from '../config/browserTest';
test.skip(!!process.env.PW_CLOCK);