@@ -125,7 +125,7 @@ export async function setupI18nConfig(useLocalize = true, format: keyof typeof f
125
125
import { browser, logging, element, by } from 'protractor';
126
126
127
127
describe('workspace-project App', () => {
128
- const getParagraph = (name: string) => element(by.css('app-root p#' + name)).getText();
128
+ const getParagraph = async (name: string) => element(by.css('app-root p#' + name)).getText();
129
129
beforeEach(() => browser.get(browser.baseUrl));
130
130
afterEach(async () => {
131
131
// Assert that there are no errors emitted from the browser
@@ -135,17 +135,17 @@ export async function setupI18nConfig(useLocalize = true, format: keyof typeof f
135
135
} as logging.Entry));
136
136
});
137
137
138
- it('should display welcome message', () =>
139
- expect(getParagraph('hello')).toEqual('${ translation . hello } '));
138
+ it('should display welcome message', async () =>
139
+ expect(await getParagraph('hello')).toEqual('${ translation . hello } '));
140
140
141
- it('should display locale', () =>
142
- expect(getParagraph('locale')).toEqual('${ lang } '));
141
+ it('should display locale', async () =>
142
+ expect(await getParagraph('locale')).toEqual('${ lang } '));
143
143
144
- it('should display localized date', () =>
145
- expect(getParagraph('date')).toEqual('${ translation . date } '));
144
+ it('should display localized date', async () =>
145
+ expect(await getParagraph('date')).toEqual('${ translation . date } '));
146
146
147
- it('should display pluralized message', () =>
148
- expect(getParagraph('plural')).toEqual('${ translation . plural } '));
147
+ it('should display pluralized message', async () =>
148
+ expect(await getParagraph('plural')).toEqual('${ translation . plural } '));
149
149
});
150
150
` ) ;
151
151
}
0 commit comments