Compare commits

...

2 Commits

Author SHA1 Message Date
Asier Isayas
21123b61dc change all tests to run serially 2025-12-19 11:13:15 -08:00
Asier Isayas
b718f0c136 trigger playwright tests 2025-12-18 08:41:08 -08:00
5 changed files with 7 additions and 6 deletions

1
Untitled-1.txt Normal file
View File

@@ -0,0 +1 @@
.t

View File

@@ -9,7 +9,7 @@ let explorer: DataExplorer = null!;
let documentsTab: DocumentsTab = null!; let documentsTab: DocumentsTab = null!;
for (const { name, databaseId, containerId, documents } of documentTestCases) { for (const { name, databaseId, containerId, documents } of documentTestCases) {
test.describe(`Test MongoRU Documents with ${name}`, () => { test.describe.serial(`Test MongoRU Documents with ${name}`, () => {
// test.skip(true, "Temporarily disabling all tests in this spec file"); // test.skip(true, "Temporarily disabling all tests in this spec file");
test.beforeEach("Open documents tab", async ({ page }) => { test.beforeEach("Open documents tab", async ({ page }) => {
await setupCORSBypass(page); await setupCORSBypass(page);
@@ -33,7 +33,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
for (const document of documents) { for (const document of documents) {
const { documentId: docId, partitionKeys } = document; const { documentId: docId, partitionKeys } = document;
test.describe(`Document ID: ${docId}`, () => { test.describe.serial(`Document ID: ${docId}`, () => {
test(`should load and view document ${docId}`, async () => { test(`should load and view document ${docId}`, async () => {
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0); const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
await span.waitFor(); await span.waitFor();

View File

@@ -8,7 +8,7 @@ let explorer: DataExplorer = null!;
let documentsTab: DocumentsTab = null!; let documentsTab: DocumentsTab = null!;
for (const { name, databaseId, containerId, documents } of documentTestCases) { for (const { name, databaseId, containerId, documents } of documentTestCases) {
test.describe(`Test SQL Documents with ${name}`, () => { test.describe.serial(`Test SQL Documents with ${name}`, () => {
// test.skip(true, "Temporarily disabling all tests in this spec file"); // test.skip(true, "Temporarily disabling all tests in this spec file");
test.beforeEach("Open documents tab", async ({ page }) => { test.beforeEach("Open documents tab", async ({ page }) => {
explorer = await DataExplorer.open(page, TestAccount.SQLReadOnly); explorer = await DataExplorer.open(page, TestAccount.SQLReadOnly);
@@ -28,7 +28,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
for (const document of documents) { for (const document of documents) {
const { documentId: docId, partitionKeys, skipCreateDelete } = document; const { documentId: docId, partitionKeys, skipCreateDelete } = document;
test.describe(`Document ID: ${docId}`, () => { test.describe.serial(`Document ID: ${docId}`, () => {
test(`should load and view document ${docId}`, async () => { test(`should load and view document ${docId}`, async () => {
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0); const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
await span.waitFor(); await span.waitFor();

View File

@@ -9,7 +9,7 @@ import {
} from "../../fx"; } from "../../fx";
import { createTestSQLContainer, TestContainerContext } from "../../testData"; import { createTestSQLContainer, TestContainerContext } from "../../testData";
test.describe("Autoscale and Manual throughput", () => { test.describe.serial("Autoscale and Manual throughput", () => {
let context: TestContainerContext = null!; let context: TestContainerContext = null!;
let explorer: DataExplorer = null!; let explorer: DataExplorer = null!;

View File

@@ -2,7 +2,7 @@ import { expect, test } from "@playwright/test";
import { CommandBarButton, DataExplorer, ONE_MINUTE_MS, TestAccount } from "../../fx"; import { CommandBarButton, DataExplorer, ONE_MINUTE_MS, TestAccount } from "../../fx";
import { createTestSQLContainer, TestContainerContext } from "../../testData"; import { createTestSQLContainer, TestContainerContext } from "../../testData";
test.describe("Settings under Scale & Settings", () => { test.describe.serial("Settings under Scale & Settings", () => {
let context: TestContainerContext = null!; let context: TestContainerContext = null!;
let explorer: DataExplorer = null!; let explorer: DataExplorer = null!;