Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix flaky remote-sync read-only tenant collection test (#76161)

Nick Fitzpatrick7c823b037da0
diff --git a/e2e/test/scenarios/admin/remote-sync.cy.spec.ts b/e2e/test/scenarios/admin/remote-sync.cy.spec.ts
index 6c569245bc5..c5b679d5510 100644
--- a/e2e/test/scenarios/admin/remote-sync.cy.spec.ts
+++ b/e2e/test/scenarios/admin/remote-sync.cy.spec.ts
@@ -745,7 +745,9 @@ describe("Remote Sync", () => {
it("should disable sync toggles in read-only mode", () => {
H.copySyncedCollectionFixture();
H.commitToRepo();
- H.configureGit("read-only");
+ // Wait for the read-only import to finish before creating the tenant collection: racing
+ // their two implicit collection-permission revision bumps triggers a primary-key 500.
+ H.configureGitAndPullChanges("read-only");
// Create a tenant collection
H.createSharedTenantCollection("Read Only Tenant Collection");