-
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 databas…
…e to drop namespace plugin COMPASS-7410 (#5096) * chore(databases-collections): refactor drop collection / drop databse to drop namespace plugin * fix(compass-components): account for existing toast context in toast area
- Loading branch information
1 parent
53ac552
commit 909f12d
Showing
28 changed files
with
274 additions
and
817 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
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.