-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEST] [E2E] Delete shipping method from the shipping zone details pa…
…ge (#4611) * test_e2e_delete_shipping_method_from_shipping_zone_details_page * test_e2e_delete_shipping_method_from_shipping_zone_details_page * Maintenance e2e tests (#4606) * Migrated warehouses tests: Edit warehouse; Delete warehouse * Migrated categories tests: Create basic category; Edit category;Bulk delete categories * Migrated warehouses tests: Edit warehouse; Delete warehouse (#4593) * Migrated warehouses tests: Edit warehouse; Delete warehouse * Update nervous-flowers-hear.md * Update nervous-flowers-hear.md * Use composites in pr automation workflow (#4597) * Use composites * Use composites * Use composites * Use composites * Use composites * changed shipping metod id in shippings tests * maintenance * add console log to goto details page actions * Trigger Build * Create ten-feet-roll.md --------- Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com> * --amend --------- Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com> Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
- Loading branch information
1 parent
d712e65
commit 621c368
Showing
7 changed files
with
92 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": minor | ||
--- | ||
|
||
Test for deleting a shipping method from a shipping zone details page |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const LOCATORS = { | ||
successBanner: '[data-test-type="success"]', | ||
errorBanner: '[data-test-type="error"]', | ||
infoBanner: '[data-test-type="info"]', | ||
dataGridTable: "[data-testid='data-grid-canvas']", | ||
successBanner: "[data-test-type=\"success\"]", | ||
errorBanner: "[data-test-type=\"error\"]", | ||
infoBanner: "[data-test-type=\"info\"]", | ||
dataGridTable: "[data-testid=\"data-grid-canvas\"]", | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Locator, Page } from "@playwright/test"; | ||
|
||
export class DeleteShippingMethodDialog { | ||
readonly page: Page; | ||
|
||
readonly deleteButton: Locator; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
|
||
this.deleteButton = page.getByTestId("submit"); | ||
} | ||
|
||
async clickDeleteButton() { | ||
await this.deleteButton.click(); | ||
} | ||
} |
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