-
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.
Migrate navigation tests to playwright (#4294)
* migrated create products tests to Playwright * permission tests with playwright wip * migrated navigation tests to playwright * switch to camel case in pw project - remove faker random number generator * login function in setup unification, wait for success banner extended to 15s
- Loading branch information
1 parent
1db8fff
commit 7329f2c
Showing
56 changed files
with
1,147 additions
and
183 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 | ||
--- | ||
|
||
migrated navigation tests to playwright |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
export const USER_PERMISSION = { | ||
channel: "channel.manager@example.com", | ||
shipping: "shipping.manager@example.com", | ||
giftCard: "gift.card.manager@example.com", | ||
app: "app.manager@example.com", | ||
settings: "setting.manager@example.com", | ||
page: "page.manager@example.com", | ||
order: "order.manager@example.com", | ||
translations: "translation.manager@example.com", | ||
staff: "staff.manager@example.com", | ||
customer: "user.manager@example.com", | ||
productTypeAndAttribute: "product.type.and.attribute.manager@example.com", | ||
discount: "discount.manager@example.com", | ||
plugin: "plugin.manager@example.com", | ||
product: "product.manager@example.com", | ||
}; |
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,13 @@ | ||
import type { Locator, Page } from "@playwright/test"; | ||
|
||
export class AppsPage { | ||
readonly page: Page; | ||
readonly installExternalAppButton: Locator; | ||
readonly appsLogosList: Locator; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
this.installExternalAppButton = page.getByTestId("add-app-from-manifest"); | ||
this.appsLogosList = page.getByTestId("app-logo"); | ||
} | ||
} |
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,11 @@ | ||
import type { Locator, Page } from "@playwright/test"; | ||
|
||
export class CategoriesPage { | ||
readonly page: Page; | ||
readonly createCategoryButton: Locator; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
this.createCategoryButton = page.getByTestId("create-category"); | ||
} | ||
} |
Oops, something went wrong.