Skip to content

เพิ่ม e2e cucumber เคสที่เหลือ #36

Open
YIEMODDS wants to merge 34 commits intopoorprogrammer:masterfrom
YIEMODDS:master
Open

เพิ่ม e2e cucumber เคสที่เหลือ #36
YIEMODDS wants to merge 34 commits intopoorprogrammer:masterfrom
YIEMODDS:master

Conversation

@YIEMODDS
Copy link
Copy Markdown
Contributor

เพิ่ม make file e2e-cucumber,load-data ให้ลบข้อมูลแล้ว set ข้อมูลใหม่ให้สะดวกต่อการ เขียน e2e
เพิ่ม e2e duplicate-invoice, duplicate-quotation, duplicate-receipt ,invoice, invoices
ทำให้การ cleanup data ไปทำตอน run แต่ละ scenario เสร็จ

YIEMODDS added 30 commits March 30, 2025 14:49
Copy link
Copy Markdown
Collaborator

@juacompe juacompe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • steps definition มี duplicate เยอะ
  • invoiceReciept ไม่มี จริง ๆ ต้องเป็น receipt

ที่เหลือดูดีหมดเลย

await this.viewReceiptPage.containsDocumentNumber(receiptNumber);

this.invoicesToCleanup.push(invoice2);
this.invoiceReceiptsToCleanup.push(receiptNumber);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

อันนี้ควรเป็น receiptsToCleanup ป่ะ?

for (const invoice of this.invoicesToCleanup) {
await deleteInvoice(invoice, this);
}
for (const receipt of this.invoiceReceiptsToCleanup) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

อันนี้เป็น receipts แหละ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants