diff --git a/net/web/test/Card.test.tsx b/net/web/test/Card.test.tsx
index 343cbe64..b022b660 100644
--- a/net/web/test/Card.test.tsx
+++ b/net/web/test/Card.test.tsx
@@ -20,7 +20,7 @@ function CardView() {
{entry.data.cardProfile.name}
{entry.data.cardDetail.status}
@@ -36,8 +36,8 @@ function CardView() {
//@ts-ignore
{cards}
@@ -137,7 +137,7 @@ test('resync cards', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('cards').attributes['data-offsync'].value).toBe('true');
+ expect(screen.getByTestId('cards').attributes.offsync.value).toBe('true');
});
statusCards = 200;
@@ -148,7 +148,7 @@ test('resync cards', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('cards').attributes['data-offsync'].value).toBe('false');
+ expect(screen.getByTestId('cards').attributes.offsync.value).toBe('false');
});
act(() => {
@@ -216,7 +216,7 @@ test('resync contact', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('card').attributes['data-offsync'].value).toBe('true');
+ expect(screen.getByTestId('card').attributes.offsync.value).toBe('true');
});
statusMessage = 200;
@@ -227,7 +227,7 @@ test('resync contact', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('card').attributes['data-offsync'].value).toBe('false');
+ expect(screen.getByTestId('card').attributes.offsync.value).toBe('false');
});
act(() => {
diff --git a/net/web/test/Channel.test.tsx b/net/web/test/Channel.test.tsx
index c9d0a74c..fdc1b20a 100644
--- a/net/web/test/Channel.test.tsx
+++ b/net/web/test/Channel.test.tsx
@@ -33,8 +33,8 @@ function ChannelView() {
//@ts-ignore
{channels}
@@ -204,7 +204,7 @@ test('add, update and remove channel', async () => {
await channelContext.actions.setRevision(1);
});
- //screen.getByTestId('count').attributes['data-count'].value
+ //screen.getByTestId('count').attributes.count.value
//console.log(prettyDOM(screen.getByTestId('channels')));
await waitFor(async () => {
@@ -213,11 +213,8 @@ test('add, update and remove channel', async () => {
expect(screen.getByTestId('summary').textContent).toBe('testdata');
});
-console.log("GET CHANNELS");
-console.log(screen.getByTestId('channels'));
-
//@ts-ignore
- const count = parseInt(screen.getByTestId('channels').attributes['data-count'].value) + 1;
+ const count = parseInt(screen.getByTestId('channels').attributes.count.value) + 1;
fetchChannels = [
{
@@ -239,7 +236,7 @@ console.log(screen.getByTestId('channels'));
expect(screen.getByTestId('channels').children).toHaveLength(1);
expect(screen.getByTestId('detail').textContent).toBe('testdata2');
//@ts-ignore
- expect(screen.getByTestId('channels').attributes['data-count'].value).toBe(count.toString());
+ expect(screen.getByTestId('channels').attributes.count.value).toBe(count.toString());
});
fetchChannels = [{ id: '123', revision: 3 }];
@@ -262,7 +259,7 @@ console.log(screen.getByTestId('channels'));
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('channels').attributes['data-offsync'].value).toBe('false');
+ expect(screen.getByTestId('channels').attributes.offsync.value).toBe('false');
});
await act(async () => {
@@ -288,7 +285,7 @@ test('resync', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('channels').attributes['data-offsync'].value).toBe('true');
+ expect(screen.getByTestId('channels').attributes.offsync.value).toBe('true');
});
await act(async () => {
@@ -298,6 +295,6 @@ test('resync', async () => {
await waitFor(async () => {
//@ts-ignore
- expect(screen.getByTestId('channels').attributes['data-offsync'].value).toBe('false');
+ expect(screen.getByTestId('channels').attributes.offsync.value).toBe('false');
});
});
diff --git a/net/web/test/Contacts.test.tsx b/net/web/test/Contacts.test.tsx
index 8741af7a..45bca5a7 100644
--- a/net/web/test/Contacts.test.tsx
+++ b/net/web/test/Contacts.test.tsx
@@ -45,7 +45,7 @@ function ContactsView() {
//@ts-ignore
{cards}
diff --git a/net/web/test/Conversation.test.tsx b/net/web/test/Conversation.test.tsx
index 695fef38..df65698b 100644
--- a/net/web/test/Conversation.test.tsx
+++ b/net/web/test/Conversation.test.tsx
@@ -42,8 +42,8 @@ function ConversationView() {
//@ts-ignore
{topics}
diff --git a/net/web/test/Info.test.tsx b/net/web/test/Info.test.tsx
index 88285127..918135a4 100644
--- a/net/web/test/Info.test.tsx
+++ b/net/web/test/Info.test.tsx
@@ -27,7 +27,7 @@ function InfoView() {
//@ts-ignore
{state.title}
diff --git a/net/web/test/Listing.test.tsx b/net/web/test/Listing.test.tsx
index 6957da18..c3959d40 100644
--- a/net/web/test/Listing.test.tsx
+++ b/net/web/test/Listing.test.tsx
@@ -37,7 +37,7 @@ function ListingView() {
//@ts-ignore
{contacts}
diff --git a/net/web/test/Thread.test.tsx b/net/web/test/Thread.test.tsx
index a4090530..5f67b793 100644
--- a/net/web/test/Thread.test.tsx
+++ b/net/web/test/Thread.test.tsx
@@ -43,7 +43,7 @@ function ThreadView() {
//@ts-ignore
{topics}
diff --git a/net/web/test/Topics.test.tsx b/net/web/test/Topics.test.tsx
index 612f3fe2..0eeaeb78 100644
--- a/net/web/test/Topics.test.tsx
+++ b/net/web/test/Topics.test.tsx
@@ -48,7 +48,7 @@ function TopicsView() {
//@ts-ignore
{channels}
diff --git a/net/web/test/User.test.tsx b/net/web/test/User.test.tsx
index 855ae991..f4a9e35c 100644
--- a/net/web/test/User.test.tsx
+++ b/net/web/test/User.test.tsx
@@ -29,7 +29,7 @@ function ProfileView() {
//@ts-ignore
{name}