-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(databases-collections): refactor drop collection / drop databse…
… to drop namespace plugin
- Loading branch information
1 parent
60997d1
commit d945d04
Showing
27 changed files
with
263 additions
and
814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
packages/compass-e2e-tests/helpers/commands/drop-collection.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
packages/compass-e2e-tests/helpers/commands/drop-database.ts
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/compass-e2e-tests/helpers/commands/drop-namespace.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { CompassBrowser } from '../compass-browser'; | ||
import * as Selectors from '../selectors'; | ||
|
||
export async function dropNamespace( | ||
browser: CompassBrowser, | ||
collectionName: string | ||
): Promise<void> { | ||
const dropModalElement = await browser.$(Selectors.DropNamespaceModal); | ||
await dropModalElement.waitForDisplayed(); | ||
const confirmInput = await browser.$(Selectors.DropNamespaceConfirmNameInput); | ||
await confirmInput.setValue(collectionName); | ||
const confirmButton = await browser.$(Selectors.DropNamespaceDropButton); | ||
await confirmButton.waitForEnabled(); | ||
|
||
await browser.screenshot('drop-namespace-modal.png'); | ||
|
||
await confirmButton.click(); | ||
|
||
const successToast = browser.$(Selectors.DropNamespaceSuccessToast); | ||
await successToast.waitForDisplayed(); | ||
await browser.clickVisible(Selectors.DropNamespaceSuccessToastCloseButton); | ||
await successToast.waitForDisplayed({ reverse: true }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 0 additions & 122 deletions
122
packages/databases-collections/src/components/drop-collection-modal.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.