mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-26 17:09:09 +00:00
Merge branch 'add-multiple-testing' into sprint-2
This commit is contained in:
commit
70c863c378
@ -39,7 +39,7 @@ describe("test App end to end", async () => {
|
|||||||
|
|
||||||
describe("test CRUD on simple inputs and default image", () => {
|
describe("test CRUD on simple inputs and default image", () => {
|
||||||
|
|
||||||
describe("test create 1 new review", async () => {
|
describe("test create 1 new review", async () => {
|
||||||
it("create 1 new review", async () => {
|
it("create 1 new review", async () => {
|
||||||
// Click the button to create a new review
|
// Click the button to create a new review
|
||||||
let create_btn = await page.$("#create-btn");
|
let create_btn = await page.$("#create-btn");
|
||||||
@ -229,18 +229,8 @@ describe("test App end to end", async () => {
|
|||||||
console.log(dialog.message());
|
console.log(dialog.message());
|
||||||
await dialog.accept();
|
await dialog.accept();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
// Get the delete button and click it
|
|
||||||
let delete_btn = await page.$("#delete-btn");
|
|
||||||
await delete_btn.click();
|
|
||||||
await page.waitForNavigation();
|
|
||||||
|
|
||||||
// Check that the card was correctly removed (there should be no remaining cards)
|
|
||||||
review_card = await page.$("#review-card");
|
|
||||||
assert.strictEqual(review_card, null);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
after(async () => {
|
after(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user