diff --git a/src/components/VnSelectProvince.vue b/src/components/VnSelectProvince.vue
index 606799e50..9fcbef11e 100644
--- a/src/components/VnSelectProvince.vue
+++ b/src/components/VnSelectProvince.vue
@@ -1,5 +1,5 @@
diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js
index cd656b829..8235b37b6 100755
--- a/test/cypress/support/commands.js
+++ b/test/cypress/support/commands.js
@@ -275,13 +275,14 @@ Cypress.Commands.add('openActions', (row) => {
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();
});
-Cypress.Commands.add('checkNotification', (type) => {
- const values = {
- created: 'Data created',
- updated: 'Data saved',
- deleted: 'Data deleted',
- };
- cy.get('.q-notification__message').should('have.text', values[type]);
+Cypress.Commands.add('checkNotification', (text) => {
+ cy.get('.q-notification')
+ .should('be.visible')
+ .last()
+ .then(($lastNotification) => {
+ if (!Cypress.$($lastNotification).text().includes(text))
+ throw new Error(`Notification not found: "${text}"`);
+ });
});
Cypress.Commands.add('checkValueForm', (id, search) => {