Skip to content

Commit

Permalink
fix: e2e tests and address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Nov 20, 2024
1 parent 1407391 commit bf6b8b5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/components/Contract.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
import { computed, type PropType } from "vue";
import { useI18n } from "vue-i18n";
import { ShieldCheckIcon } from "@heroicons/vue/solid";
import { CheckCircleIcon } from "@heroicons/vue/solid";
import SearchForm from "@/components/SearchForm.vue";
import BalanceTable from "@/components/balances/Table.vue";
Expand Down Expand Up @@ -124,7 +124,7 @@ const tabs = computed(() => [
{
title: t("tabs.contract"),
hash: "#contract",
icon: props.contract?.verificationInfo ? ShieldCheckIcon : null,
icon: props.contract?.verificationInfo ? CheckCircleIcon : null,
},
{ title: t("tabs.events"), hash: "#events" },
]);
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"infoTableError": "An Error Occurred",
"balanceTableTitle": "Balances",
"notFound": "Not Found",
"verified": "Verified",
"verified": "Source Code",
"transactionTable": {
"error": "Something went wrong",
"notFound": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"infoTableError": "Виникла помилка",
"balanceTableTitle": "Мої кошти",
"notFound": "Не знайдено",
"verified": "перевірено",
"verified": "вихідний код",
"transactionTable": {
"error": "Щось пішло не так",
"notFound": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tests/components/Contract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ describe("Contract:", () => {
},
});
expect(container.querySelector(".title-container")?.textContent?.trim()).toContain("DARA2");
expect(container.querySelector(".title-container")?.textContent?.trim()).toContain("Verified");
expect(container.querySelector(".title-container")?.textContent?.trim()).toContain("Source Code");
});
});
4 changes: 2 additions & 2 deletions packages/app/tests/e2e/src/pages/contract.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export class ContractPage extends BasePage {
super(world);
}
get transactionsTab() {
return "//button[text()='Transactions']/..";
return "//button[contains(.,'Transactions')]/..";
}

get contractTab() {
return "//button[text()='Contract']/..";
return "//button[contains(.,'Contract')]/..";
}

get contractVerificationBtn() {
Expand Down

0 comments on commit bf6b8b5

Please sign in to comment.