Skip to content

Commit

Permalink
Merge branch 'mapp_ui_elements_alert' of https://github.com/cityremad…
Browse files Browse the repository at this point in the history
…e/xyz into pr/cityremade/1484
  • Loading branch information
dbauszus-glx committed Sep 27, 2024
2 parents 5d0a22f + 800aab7 commit a360f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/lib/ui/elements/confirm.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export async function confirmTest() {
const confirm_buttons = confirm.querySelectorAll('button');

await codi.it('Should have an OK button', async () => {
codi.assertEqual(confirm_buttons[1].innerText, 'OK', 'We expect to see the OK button');
codi.assertEqual(confirm_buttons[0].innerText, 'OK', 'We expect to see the OK button');
})

await codi.it('Should have a Cancel button', async () => {
codi.assertEqual(confirm_buttons[2].innerText, 'Cancel', 'We expect to see the Cancel button');
codi.assertEqual(confirm_buttons[1].innerText, 'Cancel', 'We expect to see the Cancel button');
});

// Close the confirm
Expand Down Expand Up @@ -71,11 +71,11 @@ export async function confirmTest() {
const confirm_buttons = confirm.querySelectorAll('button');

await codi.it('Should have an OK button', async () => {
codi.assertEqual(confirm_buttons[1].innerText, 'OK', 'We expect to see the OK button');
codi.assertEqual(confirm_buttons[0].innerText, 'OK', 'We expect to see the OK button');
})

await codi.it('Should have a Cancel button', async () => {
codi.assertEqual(confirm_buttons[2].innerText, 'Cancel', 'We expect to see the Cancel button');
codi.assertEqual(confirm_buttons[1].innerText, 'Cancel', 'We expect to see the Cancel button');
});

// Close the confirm
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/ui/elements/dialog.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function dialogTest() {

const params = {
target: document.getElementById('Map'),
close: true,
closeBtn: true,
headerDrag: true,
header: 'I am a header',
content: 'I am so content',
Expand Down

0 comments on commit a360f2a

Please sign in to comment.