fix(schema-diff): align table selection layout
This commit is contained in:
1 parent
6a06a12455
commit
351dc81a30
2 files changed
+52
-33
No files matched your search
@@ -54,4 +54,21 @@ describe("SchemaDiffDialog fullscreen layout", () => {
|
||||
expect(configStepSource).toContain('v-if="restrictTables && canConfigureTableSelection"');
|
||||
expect(configStepSource).toContain("restrictTables && localSelectedTables.length && canConfigureTableSelection && isTableIdentityReady('target')");
|
||||
});
|
||||
|
||||
it("keeps explicit table selection in a shared scope below both sides", () => {
|
||||
const comparisonScope = configStepSource.indexOf("<!-- Comparison Scope -->");
|
||||
const targetInfo = configStepSource.indexOf("<!-- Target Info -->");
|
||||
const options = configStepSource.indexOf("<!-- Options -->");
|
||||
const tableSelectors = configStepSource.match(/<TableMultiSelect\b/g) ?? [];
|
||||
const tableSelector = configStepSource.indexOf("<TableMultiSelect", comparisonScope);
|
||||
const targetMatch = configStepSource.indexOf("<!-- Target Same-Name Match -->", comparisonScope);
|
||||
|
||||
expect(comparisonScope).toBeGreaterThan(targetInfo);
|
||||
expect(comparisonScope).toBeLessThan(options);
|
||||
expect(tableSelectors).toHaveLength(1);
|
||||
expect(tableSelector).toBeGreaterThan(comparisonScope);
|
||||
expect(tableSelector).toBeLessThan(options);
|
||||
expect(targetMatch).toBeGreaterThan(comparisonScope);
|
||||
expect(targetMatch).toBeLessThan(options);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user