Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed Jan 11, 2024
1 parent 19dc45e commit 2414101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion playwright/pages/dialogs/deleteShippingMethodDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export class DeleteShippingMethodDialog {
}

async clickDeleteButton() {
await this.deleteButton.first().click();
await this.deleteButton.click();
}
}
8 changes: 5 additions & 3 deletions playwright/pages/shippingMethodsPage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { URL_LIST } from "@data/url";
import { BasePage } from "@pages/basePage";
import { DeleteShippingMethodDialog } from "@dialogs/deleteShippingMethodDialog";
import { BasePage } from "@pages/basePage";
import { AssignCountriesDialog } from "@pages/dialogs/assignCountriesDialog";
import { RightSideDetailsPage } from "@pages/pageElements/rightSideDetailsSection";
import type { Page } from "@playwright/test";
Expand All @@ -27,18 +27,18 @@ export class ShippingMethodsPage {
readonly deleteShippingMethodButton = page.getByTestId("shipping-method-row").getByRole("button").getByTestId("delete-button"),
readonly priceBasedRatesSection = page.getByTestId("price-based-rates"),
readonly weightBasedRatesSection = page.getByTestId("weight-based-rates"),
) {
) {
this.page = page;
this.basePage = new BasePage(page);
this.rightSideDetailsPage = new RightSideDetailsPage(page);
this.assignCountriesDialog = new AssignCountriesDialog(page);
this.deleteShippingMethodDialog = new DeleteShippingMethodDialog(page)
this.deleteShippingMethodDialog = new DeleteShippingMethodDialog(page);
}

async clickAddWeightRateButton() {
await this.addWeightRateButton.click();
}

async clickAddPriceRateButton() {
await this.addPriceRateButton.click();
}
Expand All @@ -52,6 +52,7 @@ export class ShippingMethodsPage {
`${shippingZoneName} - ${new Date().toISOString()}`,
);
}

async typeShippingZoneDescription(
shippingDescription = "Biggest zone in e2e world",
) {
Expand All @@ -69,6 +70,7 @@ export class ShippingMethodsPage {
timeout: 10000,
});
}

async gotoExistingShippingMethod(shippingMethodId: string) {
const existingShippingMethodUrl = `${URL_LIST.shippingMethods}${shippingMethodId}`;
await console.log(
Expand Down

0 comments on commit 2414101

Please sign in to comment.